From 8aadcd7796a20b3d1bc5d6ef525147a50bf834ff Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Thu, 31 May 2018 10:53:17 -0400 Subject: [PATCH] Master Module - Add persistance to the containers and update config --- salt/master/files/registry/config.yml | 18 ++++++++++++++++++ salt/master/init.sls | 3 ++- 2 files changed, 20 insertions(+), 1 deletion(-) 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 %}