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