Move towards named volumes and stored configs

This commit is contained in:
Luke Murphy 2020-04-30 10:58:43 +02:00
parent 87ca59723f
commit 5ef399f969
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 9 additions and 3 deletions

View File

@ -11,9 +11,11 @@ services:
- "443:443"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/autonomic/traefik.swarm.autonomic.zone/letsencrypt:/etc/letsencrypt
- ${PWD}/traefik.yml:/etc/traefik/traefik.yml
- "/var/run/docker.sock:/var/run/docker.sock"
- "letsencrypt:/etc/letsencrypt"
configs:
- source: traefik-yml
target: /etc/traefik/traefik.yml
networks:
- proxy
deploy:
@ -38,3 +40,7 @@ networks:
volumes:
letsencrypt:
configs:
traefik-yml:
file: ./traefik-v1.yml