distribution/docker-compose.prod.yml

56 lines
1.3 KiB
YAML
Raw Normal View History

2020-05-11 15:05:39 +00:00
---
version: "3.7"
services:
registry:
2020-05-11 15:07:27 +00:00
image: "registry:2"
ports:
- "5000:5000"
volumes:
- "registry:/var/lib/registry"
2020-05-11 15:05:39 +00:00
networks:
- proxy
deploy:
mode: replicated
replicas: 1
update_config:
failure_action: rollback
placement:
constraints:
- node.role == manager
labels:
- "traefik.enable=true"
2020-05-11 15:11:16 +00:00
- "traefik.http.services.registry.loadbalancer.server.port=5000"
2020-05-11 15:05:39 +00:00
2020-05-11 15:07:27 +00:00
registry-ui:
image: "joxit/docker-registry-ui:1.4"
ports:
2020-05-11 15:11:16 +00:00
- "3060:80"
2020-05-11 15:05:39 +00:00
environment:
2020-05-11 15:07:27 +00:00
- REGISTRY_URL=http://registry:5000
2020-05-11 15:05:39 +00:00
- REGISTRY_TITLE=registry.swarm.autonomic.zone
- DELETE_IMAGES=true
networks:
- proxy
deploy:
mode: replicated
replicas: 1
update_config:
failure_action: rollback
placement:
constraints:
- node.role == manager
labels:
- "traefik.enable=true"
2020-05-11 15:11:16 +00:00
- "traefik.http.services.registry.loadbalancer.server.port=80"
- "traefik.http.routers.registry.rule=Host(`registry.swarm.autonomic.zone`)"
- "traefik.http.routers.registry.entrypoints=web-secure"
- "traefik.http.routers.registry.tls.certresolver=staging"
2020-05-11 15:05:39 +00:00
networks:
proxy:
external: true
volumes:
registry: