Skip to content

Commit

Permalink
Use standard docker volumes for registry
Browse files Browse the repository at this point in the history
  • Loading branch information
kmmndr committed Nov 14, 2020
1 parent 3637c35 commit 655f4e5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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

0 comments on commit 655f4e5

Please sign in to comment.