diff --git a/salt/master/files/registry/config.yml b/salt/master/files/registry/config.yml index f903d06d1..dab819df7 100644 --- a/salt/master/files/registry/config.yml +++ b/salt/master/files/registry/config.yml @@ -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 \ No newline at end of file diff --git a/salt/master/init.sls b/salt/master/init.sls index 0714a7f94..581e0ddce 100644 --- a/salt/master/init.sls +++ b/salt/master/init.sls @@ -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 %}