dynamic config

This commit is contained in:
mathieu 2024-05-18 23:35:51 +02:00
parent 9f5bb0b5cc
commit 55e892c6cd
3 changed files with 16 additions and 12 deletions

View File

@ -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
View 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"

View File

@ -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"