Mount dynamic config in traefik

This commit is contained in:
Colin Hebert
2022-12-31 10:46:53 +01:00
parent 1e249922b5
commit 85c83e7800

View File

@@ -20,6 +20,8 @@ services:
networks: networks:
- traefik - traefik
- docker - docker
volumes:
- traefik_config:/etc/traefik/
configs: configs:
- source: traefik_config - source: traefik_config
target: /etc/traefik/traefik.yml target: /etc/traefik/traefik.yml
@@ -69,6 +71,13 @@ volumes:
device: ${SERVICES_DIR?}/portainer/volumes/data/ device: ${SERVICES_DIR?}/portainer/volumes/data/
labels: labels:
nas-compose.boostrap: true nas-compose.boostrap: true
traefik_config:
driver_opts:
type: none
o: bind
device: ${SERVICES_DIR?}/traefik/volumes/config/
labels:
nas-compose.boostrap: true
configs: configs:
traefik_config: traefik_config: