1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00
dockerfiles/registry/docker-compose.yml

34 lines
829 B
YAML
Raw Normal View History

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