diff --git a/docker-compose.yml b/docker-compose.yml index f724a28..ccbffce 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: diff --git a/dsm.yml b/dsm.yml new file mode 100644 index 0000000..5814acb --- /dev/null +++ b/dsm.yml @@ -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" diff --git a/traefik.yml b/traefik.yml index 363ef6d..166fe1b 100644 --- a/traefik.yml +++ b/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