quick pass on updating old cruft

master
cellarspoon 1 year ago
parent 93a5dc7509
commit d05129e52b
No known key found for this signature in database
GPG Key ID: 03789458B3D0C410
  1. 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…
Cancel
Save