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