Hi
I strictly followed the documentation for docker swarm provider
traefik.toml
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.https]
address = ":443"
[providers]
[providers.file]
filename = "dynamic.toml"
[providers.docker]
swarmMode = true
exposedByDefault = false
[api]
dashboard = true
debug = true
[log]
level = "DEBUG"
docker-stack.yml
version: '3.7'
services:
reverse-proxy:
image: traefik:v2.1.1
ports:
- "80:80"
- "443:443"
deploy:
labels:
- "traefik.enable=true"
- "traefik.http.routers.api.rule=PathPrefix(`/dashboard`)"
- "traefik.http.routers.api.service=api@internal"
- "traefik.http.services.dummy-svc.loadbalancer.server.port=9999"
- "traefik.http.routers.api.rule=Host(`tspeda-swarm-supervision.infra.domain.fr`) && PathPrefix(`/dashboard`)"
- "traefik.http.routers.api.entryPoints=http"
#- "traefik.http.routers.api.entrypoints=https"
#- "traefik.http.routers.api.tls=true"
#- "traefik.http.routers.api.middlewares=auth"
#- "traefik.http.middlewares.auth.basicauth.users=admin:
placement:
constraints:
- node.role == manager
mode: replicated
replicas: 1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik.toml:/traefik.toml
- ./dynamic.toml:/dynamic.toml
secrets:
- ssl_key_supervision
- ssl_cert_supervision
networks:
- traefik-public
secrets:
ssl_key_supervision:
file: /root/SSL/tspeda-swarm-supervision.infra.domain.fr.key
ssl_cert_supervision:
file: /root/SSL/tspeda-swarm-supervision.infra.domain.fr.cert
networks:
traefik-public:
external: true
dynamic.toml
[tls]
[[tls.certificates]]
certFile = "/run/secrets/ssl_cert_supervision"
keyFile = "/run/secrets/ssl_key_supervision"
if i access to http://tspeda-swarm-supervision.infra.domain.fr/dashboard/
i get
Without any warning or error in logs
Dashboard loads, but not completly