distribution/compose.yml

54 lines
1.4 KiB
YAML
Raw Normal View History

2020-05-11 15:05:39 +00:00
---
2021-12-20 23:53:54 +00:00
version: "3.8"
2020-05-11 15:05:39 +00:00
services:
2021-12-20 23:53:54 +00:00
app:
2020-05-11 15:07:27 +00:00
image: "registry:2"
volumes:
- "registry:/var/lib/registry"
2020-05-11 15:05:39 +00:00
networks:
2020-05-11 16:34:43 +00:00
- proxy
configs:
2021-12-20 23:53:54 +00:00
- source: config_yml
2020-05-11 16:34:43 +00:00
target: /etc/docker/registry/config.yml
2020-05-11 15:05:39 +00:00
deploy:
update_config:
failure_action: rollback
2020-05-11 16:34:43 +00:00
labels:
- "traefik.enable=true"
- "traefik.http.services.registry.loadbalancer.server.port=5000"
- "traefik.http.routers.registry.rule=Host(`registry.swarm.autonomic.zone`)"
- "traefik.http.routers.registry.entrypoints=web-secure"
- "traefik.http.routers.registry.tls.certresolver=production"
2020-05-11 15:05:39 +00:00
2021-12-20 23:53:54 +00:00
ui:
2020-05-11 19:10:35 +00:00
image: "joxit/docker-registry-ui:static"
2020-05-11 15:05:39 +00:00
networks:
- proxy
2020-05-11 19:10:35 +00:00
environment:
- REGISTRY_TITLE=Autonomic Container Catalogue
- URL=https://registry.swarm.autonomic.zone
2020-05-11 15:25:43 +00:00
depends_on:
- registry
2020-05-11 15:05:39 +00:00
deploy:
update_config:
failure_action: rollback
labels:
- "traefik.enable=true"
2020-05-11 16:34:43 +00:00
- "traefik.http.services.registry-ui.loadbalancer.server.port=80"
- "traefik.http.routers.registry-ui.rule=Host(`catalogue.swarm.autonomic.zone`)"
- "traefik.http.routers.registry-ui.entrypoints=web-secure"
- "traefik.http.routers.registry-ui.tls.certresolver=production"
2020-05-11 15:05:39 +00:00
networks:
proxy:
external: true
2020-05-11 16:34:43 +00:00
configs:
2021-12-20 23:53:54 +00:00
config_yml:
2020-06-17 06:38:00 +00:00
file: config.yml.tmpl
template_driver: golang
2020-05-11 16:34:43 +00:00
2020-05-11 15:05:39 +00:00
volumes:
registry: