dynamic config
This commit is contained in:
parent
9f5bb0b5cc
commit
55e892c6cd
@ -15,6 +15,7 @@ services:
|
||||
- "8088:8080"
|
||||
volumes:
|
||||
- /volume1/docker/traefik/conf/traefik.yml:/etc/traefik/traefik.yml
|
||||
- /volume1/docker/traefik/conf/dsm.yml:/etc/traefik/dynamic_conf/dsm.yml
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
|
||||
whoami:
|
||||
|
12
dsm.yml
Normal file
12
dsm.yml
Normal file
@ -0,0 +1,12 @@
|
||||
http:
|
||||
routers:
|
||||
router-dsm:
|
||||
rule: "Host(`dsm.local`)"
|
||||
service: service-dsm
|
||||
# tls:
|
||||
# certResolver: cloudflare
|
||||
services:
|
||||
service-dsm:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: "https://192.168.1.100:5001"
|
15
traefik.yml
15
traefik.yml
@ -28,15 +28,6 @@ providers:
|
||||
docker:
|
||||
endpoint: "unix:///var/run/docker.sock"
|
||||
|
||||
http:
|
||||
routers:
|
||||
router-dsm:
|
||||
rule: "Host(`dsm.local`)"
|
||||
service: service-dsm
|
||||
# tls:
|
||||
# certResolver: cloudflare
|
||||
services:
|
||||
service-dsm:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: "https://192.168.1.100:5001"
|
||||
file:
|
||||
directory: "/etc/traefik/dynamic_conf"
|
||||
watch: true
|
||||
|
Loading…
Reference in New Issue
Block a user