quick pass on updating old cruft
parent
93a5dc7509
commit
d05129e52b
24
compose.yml
24
compose.yml
|
@ -1,26 +1,19 @@
|
|||
---
|
||||
version: "3.7"
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
registry:
|
||||
app:
|
||||
image: "registry:2"
|
||||
ports:
|
||||
- "5000:5000"
|
||||
volumes:
|
||||
- "registry:/var/lib/registry"
|
||||
networks:
|
||||
- proxy
|
||||
configs:
|
||||
- source: config-yml-prod-v1
|
||||
- source: config_yml
|
||||
target: /etc/docker/registry/config.yml
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 1
|
||||
update_config:
|
||||
failure_action: rollback
|
||||
placement:
|
||||
constraints:
|
||||
- node.role == manager
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.services.registry.loadbalancer.server.port=5000"
|
||||
|
@ -28,10 +21,8 @@ services:
|
|||
- "traefik.http.routers.registry.entrypoints=web-secure"
|
||||
- "traefik.http.routers.registry.tls.certresolver=production"
|
||||
|
||||
registry-ui:
|
||||
ui:
|
||||
image: "joxit/docker-registry-ui:static"
|
||||
ports:
|
||||
- "3060:80"
|
||||
networks:
|
||||
- proxy
|
||||
environment:
|
||||
|
@ -40,13 +31,8 @@ services:
|
|||
depends_on:
|
||||
- registry
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 1
|
||||
update_config:
|
||||
failure_action: rollback
|
||||
placement:
|
||||
constraints:
|
||||
- node.role == manager
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.services.registry-ui.loadbalancer.server.port=80"
|
||||
|
@ -59,7 +45,7 @@ networks:
|
|||
external: true
|
||||
|
||||
configs:
|
||||
config-yml-prod-v1:
|
||||
config_yml:
|
||||
file: config.yml.tmpl
|
||||
template_driver: golang
|
||||
|
||||
|
|
Loading…
Reference in New Issue