Master Module - Add persistance to the containers and update config

This commit is contained in:
Mike Reeves
2018-05-31 10:53:17 -04:00
parent 7374c47e10
commit 8aadcd7796
2 changed files with 20 additions and 1 deletions

View File

@@ -1,2 +1,20 @@
version: 0.1
log:
fields:
service: registry
storage:
cache:
blobdescriptor: inmemory
filesystem:
rootdirectory: /var/lib/registry
http:
addr: :5000
headers:
X-Content-Type-Options: [nosniff]
health:
storagedriver:
enabled: true
interval: 10s
threshold: 3
proxy:
remoteurl: https://registry-1.docker.io

View File

@@ -73,6 +73,7 @@ so-dockerregistry:
- port_bindings:
- 0.0.0.0:5000:5000
- binds:
- /opt/so/conf/docker-registry/etc/config.yml:/etc/docker/registry/config.yml
- /opt/so/conf/docker-registry/etc/config.yml:/etc/docker/registry/config.yml:ro
- /opt/so/conf/docker-registry:/var/lib/registry:rw
{% endif %}