How reach Traefik dashboard?
I am new to Linode, so be gentle. :)
I have spun up a Node installed docker and compose, created an external network for docker-compose, started Traefik, it is listening to 80 and 443. But how do I get to see the dashboard?
Maybe I have to wait for the url redirect to go through?
Here is my docker-compose:
version: '3'
services:
traefik:
image: traefik:latest
container_name: traefik
restart: unless-stopped
security_opt:
- no-new-privileges:true
networks:
- proxy
ports:
- 80:80
- 443:443
environment:
- CF_API_EMAIL=${CF_EMAIL}
- CF_DNS_API_TOKEN=${CF_API_TOKEN}
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /home/ladmin/appdata/traefik/data/traefik.yml:/traefik.yml:ro
- /home/ladmin/appdata/traefik/data/acme.json:/acme.json
- /home/ladmin/appdata/traefik/data/config.yml:/config.yml:ro
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.entrypoints=http"
- "traefik.http.routers.traefik.rule=Host(traefik.sundsvallbbq.se
)"
- "traefik.http.middlewares.traefik-auth.basicauth.users=mattias:trafikenKontrolleras"
- "traefik.http.middlewares.traefik-https-redirect.redirectscheme.scheme=https"
- "traefik.http.middlewares.sslheader.headers.customrequestheaders.X-Forwarded-Proto=https"
- "traefik.http.routers.traefik.middlewares=traefik-https-redirect"
- "traefik.http.routers.traefik-secure.entrypoints=https"
- "traefik.http.routers.traefik-secure.rule=Host(traefik.sundsvallbbq.se
)"
- "traefik.http.routers.traefik-secure.middlewares=traefik-auth"
- "traefik.http.routers.traefik-secure.tls=true"
- "traefik.http.routers.traefik-secure.tls.certresolver=cloudflare"
- "traefik.http.routers.traefik-secure.tls.domains[0].main=sundsvallbbq.se"
- "traefik.http.routers.traefik-secure.tls.domains[0].sans=*.sundsvallbbq.se"
- "traefik.http.routers.traefik-secure.service=api@internal"
networks:
proxy:
external: true
1 Reply
Taking a look at the Traefik documentation, it looks like you'll need to access the dashboard on port 8080
:
You can now access the dashboard on the port 8080 of the Traefik instance, at the following URL: http://<Traefik IP>:8080/dashboard/ (trailing slash is mandatory).
From The Dashboard