From 655f4e505930adbb1ab185ae679cabdf920d8d21 Mon Sep 17 00:00:00 2001 From: Thomas Kienlen Date: Sat, 14 Nov 2020 22:36:59 +0100 Subject: [PATCH] Use standard docker volumes for registry --- docker-compose.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7ba2ebb..6e48ed6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,25 +1,21 @@ -version: '3.3' +version: '3.7' services: registry: - restart: always image: registry:2 + restart: always # ports: # - 5000:5000 environment: - # REGISTRY_HTTP_TLS_CERTIFICATE: /certs/domain.crt - # REGISTRY_HTTP_TLS_KEY: /certs/domain.key REGISTRY_AUTH: htpasswd REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm volumes: - - ${BASEDIR:-/srv/common}/registry/data:/var/lib/registry - # - ${BASEDIR:-/srv/common}/registry/certs:/certs - - ${BASEDIR:-/srv/common}/registry/auth:/auth + - registry-data:/var/lib/registry + - registry-auth:/auth networks: - traefik_default - # - traefik_network - # - default + - default labels: - "traefik.port=5000" - "traefik.enable=true" @@ -30,6 +26,10 @@ services: - "traefik.http.routers.registry-tls.entrypoints=websecure" - "traefik.http.routers.registry-tls.tls.certresolver=default" +volumes: + registry-auth: + registry-data: + networks: traefik_default: external: true