This repository has been archived on 2020-08-11. You can view files and clone it, but cannot push or open issues or pull requests.
stack/docker-compose-registry.yml

44 lines
987 B
YAML
Raw Permalink Normal View History

2020-05-01 22:07:26 +00:00
version: "3.7"
services:
letsencrypt-registry:
deploy:
placement:
constraints: [node.labels.com.sigyl.git-stack == yes]
2020-05-01 23:48:17 +00:00
replicas: 1
2020-05-01 22:07:26 +00:00
restart_policy:
condition: any
2020-05-01 23:48:17 +00:00
image: ${LOCAL_DOCKER_REGISTRY}letsencrypt-registry
2020-05-01 22:07:26 +00:00
environment:
- CERTBOT_EMAIL=${CERTBOT_EMAIL}
- SERVER_NAME=${GIT_DOMAIN}
- REGISTRY_PROXY_PASS=http://registry:5000
volumes:
- letsencrypt-registry:/etc/letsencrypt
networks:
- appnet
ports:
- 5004:5004
registry:
# internal registry #1 (why?)
deploy:
placement:
constraints: [node.labels.com.sigyl.git-stack == yes]
replicas: 1
restart_policy:
condition: any
image: registry:2
volumes:
- registry-data:/var/lib/registry
environment:
- REGISTRY_HTTP_ADDR=0.0.0.0:5000
networks:
- appnet
volumes:
registry-data:
2020-05-01 22:23:33 +00:00
letsencrypt-registry:
2020-05-01 22:07:26 +00:00
networks:
appnet:
driver: overlay
#external: true