Move all configs to the config volume

This commit is contained in:
Colin Hebert
2022-12-31 10:56:47 +01:00
parent 501cab6b96
commit 5d87b076b3
4 changed files with 10 additions and 9 deletions

View File

@@ -23,9 +23,6 @@ services:
- docker
volumes:
- traefik_config:/etc/traefik/
configs:
- source: traefik_config
target: /etc/traefik/traefik.yml
depends_on:
- docker
restart: unless-stopped
@@ -80,10 +77,6 @@ volumes:
labels:
nas-compose.boostrap: true
configs:
traefik_config:
file: ${SERVICES_DIR?}/traefik/configs/traefik.yml
secrets:
portainer_password:
file: ${SERVICES_DIR?}/portainer/secrets/portainer_password

View File

@@ -0,0 +1 @@
!*

View File

@@ -0,0 +1,5 @@
http:
routers:
traefik:
rule: Host(`traefik.dev.dedicated.contact`)
service: api@internal

View File

@@ -5,12 +5,14 @@ providers:
network: traefik
defaultRule: Host(`{{ index .Labels "com.docker.compose.service" }}.dev.dedicated.contact`)
file:
directory: /etc/traefik/dynamic
directory: /etc/traefik/dynamic/
serverstransport:
insecureskipverify: true
api: {}
api:
insecure: true
accessLog: {}
entryPoints: