1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-10 04:19:24 +02:00
dockerfiles/registry/docker-compose.yml

39 lines
896 B
YAML
Raw Normal View History

2019-06-20 13:12:01 +02:00
#
2024-08-23 11:57:57 +02:00
# See:
# - https://distribution.github.io/distribution/about/deploying/
# - https://docs.docker.com/docker-hub/mirror/
2019-06-20 13:12:01 +02:00
#
2021-12-13 07:21:46 +02:00
version: "3.8"
2016-08-29 02:13:48 +02:00
2021-12-13 07:21:46 +02:00
services:
registry:
image: registry:2
ports:
- "5000:5000"
volumes:
- /etc/docker/registry
- ./data:/var/lib/registry
- ./certs:/certs
- ./auth:/auth
environment:
- REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt
- REGISTRY_HTTP_TLS_KEY=/certs/domain.key
- REGISTRY_AUTH=htpasswd
- REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm
- REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd
restart: unless-stopped
webui:
image: joxit/docker-registry-ui:2
ports:
- "5080:80"
environment:
- NGINX_PROXY_PASS_URL=http://registry:5000
- REGISTRY_TITLE=EasyPi Docker Registry
- DELETE_IMAGES=true
depends_on:
- registry
restart: unless-stopped