Enabling Logging crashes Traefik v1

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"

Hello @melvincv.

It seems that you are setting the dashboard to use an entrypoint on port 8080 but you forgot to expose that port when starting your Traefik container.

You can try something like:

logLevel = "DEBUG"

[traefikLog]
  filePath = "/logs/traefik.log"

[accessLog]
  filePath = "/logs/access.log"

defaultEntryPoints = ["http", "https"]
[entryPoints]
  [entryPoints.dashboard]
    address = ":8080"
  [entryPoints.http]
    address = ":80"
  [entryPoints.https]
    address = ":443"

[api]
  entrypoint="dashboard"

[docker]
domain = "docker.localhost"
watch = true
network = "web"

Then:

$ docker run -d   --restart unless-stopped  -v /var/run/docker.sock:/var/run/docker.sock   -v "$PWD/traefik.toml:/traefik.toml" -v "$PWD/logs:/logs"   -p 80:80   -p 443:443  -p 8080:8080 --network web --name traefik traefik:alpine