Keep fixed and dynamic config indepedent

This commit is contained in:
Colin Hebert
2022-12-31 11:04:34 +01:00
parent 5d87b076b3
commit 908be1aab2
4 changed files with 46 additions and 39 deletions

View File

@@ -0,0 +1,32 @@
providers:
docker:
endpoint: tcp://docker:2375
exposedByDefault: false
network: traefik
defaultRule: Host(`{{ index .Labels "com.docker.compose.service" }}.dev.dedicated.contact`)
file:
directory: /etc/traefik/dynamic/
serverstransport:
insecureskipverify: true
api:
insecure: true
accessLog: {}
entryPoints:
web:
address: :80
http:
# redirections:
# entryPoint:
# to: websecure
# scheme: https
websecure:
address: :443
http:
tls: {}
global:
sendAnonymousUsage: false

View File

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

View File

@@ -1,32 +1,5 @@
providers:
docker:
endpoint: tcp://docker:2375
exposedByDefault: false
network: traefik
defaultRule: Host(`{{ index .Labels "com.docker.compose.service" }}.dev.dedicated.contact`)
file:
directory: /etc/traefik/dynamic/
serverstransport:
insecureskipverify: true
api:
insecure: true
accessLog: {}
entryPoints:
web:
address: :80
http:
# redirections:
# entryPoint:
# to: websecure
# scheme: https
websecure:
address: :443
http:
tls: {}
global:
sendAnonymousUsage: false
http:
routers:
traefik:
rule: Host(`traefik.dev.dedicated.contact`)
service: api@internal