1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/registry/docker-compose.yml

38 lines
885 B
YAML
Raw Normal View History

2019-06-20 13:12:01 +02:00
#
# See: https://docs.docker.com/registry/deploying/
#
2016-06-18 08:57:59 +02:00
registry:
2016-08-29 02:13:48 +02:00
image: registry:2
2016-06-18 08:57:59 +02:00
ports:
- "5000:5000"
volumes:
2016-08-27 13:44:32 +02:00
- /etc/docker/registry
2016-06-18 08:57:59 +02:00
- ./data:/var/lib/registry
- ./certs:/certs
- ./auth:/auth
environment:
2016-08-29 02:13:48 +02:00
- REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt
- REGISTRY_HTTP_TLS_KEY=/certs/domain.key
2016-06-18 08:57:59 +02:00
- REGISTRY_AUTH=htpasswd
- REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm
- REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd
restart: always
2016-08-29 02:13:48 +02:00
frontend:
image: konradkleine/docker-registry-frontend:v2
ports:
- "8080:80"
- "8443:443"
links:
- registry
volume:
- ./certs/domain.crt:/etc/apache2/domain.crt
- ./certs/domain.key:/etc/apache2/domain.key
environment:
- ENV_DOCKER_REGISTRY_HOST=registry
- ENV_DOCKER_REGISTRY_PORT=5000
- ENV_DOCKER_REGISTRY_USE_SSL=1
- ENV_USE_SSL=yes
restart: always