I am using the docker image of Traefik v1.7.14.
Enabling logging creates the required logs, but the dashboard and sites do not work.
"404 not found" is what I get.
Docker run command:
docker run -d \
--restart unless-stopped \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $PWD/traefik.toml:/traefik.toml \
-v $PWD/acme.json:/acme.json \
-v $PWD/logs:/logs \
-p 80:80 \
-p 443:443 \
-l traefik.frontend.rule=Host:monitor.xxx.in \
-l traefik.port=8080 \
--network web \
--name traefik \
traefik:alpine
Static config file:
logLevel = "WARN"
[traefikLog]
filePath = "/logs/traefik.log"
[accessLog]
filePath = "/logs/access.log"
defaultEntryPoints = ["http", "https"]
[entryPoints]
[entryPoints.dashboard]
address = ":8080"
[entryPoints.dashboard.auth]
[entryPoints.dashboard.auth.basic]
users = ["admin:$xxx/"]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[api]
entrypoint="dashboard"
[acme]
email = "xxx@gmail.com"
storage = "acme.json"
entryPoint = "https"
onHostRule = true
[acme.httpChallenge]
entryPoint = "http"
[docker]
domain = "xxx.in"
watch = true
network = "web"