[GH-ISSUE #33] unable to change traefik dashboard port #30

Closed
opened 2026-05-06 12:22:49 +02:00 by BreizhHardware · 8 comments

Originally created by @akanealw on GitHub (May 4, 2026).
Original GitHub issue: https://github.com/chr0nzz/traefik-manager/issues/33

Traefik Manager version

1.0.0

How are you running Traefik Manager?

Docker

Traefik version

3.6.14

What happened?

I've been trying to move the traefik dashboard off of port 8080 as it conflicts with another service. I've changed the manager.yml file and the labels on the docker container but I am unable to connect to it on port 8085. I've disabled insecure api as traefik documents suggest you need to do that to change the port.

Steps to reproduce

changed ports in manager.yml and compose.yml

What did you expect to happen?

The api being available on 8085. I'm not sure if there's another place to change the port I missed or I am misreading the documentation.

Relevant logs or screenshots

Image

Relevant configuration

manager.yml snippet
traefik_api_url: http://traefik:8085

traefik:
    image: traefik:latest
    container_name: traefik
    restart: unless-stopped
    depends_on:
      authelia:
        condition: service_healthy
    networks:
      - authelia
      - crowdsec
      - reverse-proxy
    ports:
      - "80:80"
      - "443:443"
      - "8085:8080"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - $PWD/traefik/traefik.yml:/traefik.yml:ro
      - $PWD/traefik/acme.json:/acme.json
      - $PWD/traefik/logs:/logs
      - $PWD/traefik/config/dynamic.yml:/etc/traefik/config/dynamic.yml:ro
    environment:
      - CF_DNS_API_TOKEN=XXXXXX
      - TRAEFIK_API_URL=http://traefik:8085
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.dashboard.rule=Host(`dashboard.example.com`)"
      - "traefik.http.routers.dashboard.entrypoints=websecure"
      - "traefik.http.routers.dashboard.service=api@internal"
      - "traefik.http.routers.dashboard.middlewares=authelia@docker"
      - "traefik.http.routers.dashboard.tls.certresolver=letsencrypt"
      - "traefik.http.routers.dashboard.loadbalancer.server.port=8085"
      - "traefik.http.routers.api.middlewares=authelia@docker"
Originally created by @akanealw on GitHub (May 4, 2026). Original GitHub issue: https://github.com/chr0nzz/traefik-manager/issues/33 ### Traefik Manager version 1.0.0 ### How are you running Traefik Manager? Docker ### Traefik version 3.6.14 ### What happened? I've been trying to move the traefik dashboard off of port 8080 as it conflicts with another service. I've changed the manager.yml file and the labels on the docker container but I am unable to connect to it on port 8085. I've disabled insecure api as traefik documents suggest you need to do that to change the port. ### Steps to reproduce changed ports in manager.yml and compose.yml ### What did you expect to happen? The api being available on 8085. I'm not sure if there's another place to change the port I missed or I am misreading the documentation. ### Relevant logs or screenshots <img width="590" height="164" alt="Image" src="https://github.com/user-attachments/assets/5d29061c-f9ca-41dd-90d2-21605b8cf373" /> ### Relevant configuration ``` manager.yml snippet traefik_api_url: http://traefik:8085 traefik: image: traefik:latest container_name: traefik restart: unless-stopped depends_on: authelia: condition: service_healthy networks: - authelia - crowdsec - reverse-proxy ports: - "80:80" - "443:443" - "8085:8080" volumes: - /var/run/docker.sock:/var/run/docker.sock:ro - $PWD/traefik/traefik.yml:/traefik.yml:ro - $PWD/traefik/acme.json:/acme.json - $PWD/traefik/logs:/logs - $PWD/traefik/config/dynamic.yml:/etc/traefik/config/dynamic.yml:ro environment: - CF_DNS_API_TOKEN=XXXXXX - TRAEFIK_API_URL=http://traefik:8085 labels: - "traefik.enable=true" - "traefik.http.routers.dashboard.rule=Host(`dashboard.example.com`)" - "traefik.http.routers.dashboard.entrypoints=websecure" - "traefik.http.routers.dashboard.service=api@internal" - "traefik.http.routers.dashboard.middlewares=authelia@docker" - "traefik.http.routers.dashboard.tls.certresolver=letsencrypt" - "traefik.http.routers.dashboard.loadbalancer.server.port=8085" - "traefik.http.routers.api.middlewares=authelia@docker"
BreizhHardware 2026-05-06 12:22:49 +02:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@akanealw commented on GitHub (May 4, 2026):

sorry for the edits, I was blind to the preview button at first.

<!-- gh-comment-id:4367513220 --> @akanealw commented on GitHub (May 4, 2026): sorry for the edits, I was blind to the preview button at first.
Author
Owner

@chr0nzz commented on GitHub (May 4, 2026):

This isn't a TM issue - it's how Docker port mapping works. 8085:8080 means your host machine can reach Traefik on port 8085, but inside the Docker network all containers still talk to the internal port (8080).

Change your manager.yml to:

traefik_api_url: http://traefik:8080

The 8085 port is only relevant if you're accessing the API from outside Docker (e.g. from your browser or a tool on the host). Container-to-container communication always uses the internal port regardless of what's mapped on the host.

<!-- gh-comment-id:4367516927 --> @chr0nzz commented on GitHub (May 4, 2026): This isn't a TM issue - it's how Docker port mapping works. 8085:8080 means your host machine can reach Traefik on port 8085, but inside the Docker network all containers still talk to the internal port (8080). Change your manager.yml to: traefik_api_url: http://traefik:8080 The 8085 port is only relevant if you're accessing the API from outside Docker (e.g. from your browser or a tool on the host). Container-to-container communication always uses the internal port regardless of what's mapped on the host.
Author
Owner

@akanealw commented on GitHub (May 4, 2026):

completely forgot the traefik.yml change
api: dashboard: true insecure: false

<!-- gh-comment-id:4367517632 --> @akanealw commented on GitHub (May 4, 2026): completely forgot the traefik.yml change `api: dashboard: true insecure: false`
Author
Owner

@chr0nzz commented on GitHub (May 4, 2026):

or u can use your traefik url https://dashboard.example.com

<!-- gh-comment-id:4367526433 --> @chr0nzz commented on GitHub (May 4, 2026): or u can use your traefik url https://dashboard.example.com
Author
Owner

@akanealw commented on GitHub (May 4, 2026):

Sorry, I'm pretty new to traefik and still learning the configs and wanted to make sure the manager.yml setting wasn't affecting it.

<!-- gh-comment-id:4367530386 --> @akanealw commented on GitHub (May 4, 2026): Sorry, I'm pretty new to traefik and still learning the configs and wanted to make sure the manager.yml setting wasn't affecting it.
Author
Owner

@chr0nzz commented on GitHub (May 4, 2026):

no worries.

let me know if everything is working for u

<!-- gh-comment-id:4367534127 --> @chr0nzz commented on GitHub (May 4, 2026): no worries. let me know if everything is working for u
Author
Owner

@chr0nzz commented on GitHub (May 4, 2026):

one issue in your Traefik compose i noticed

this
- "traefik.http.routers.dashboard.loadbalancer.server.port=8085"
change to this
- "traefik.http.routers.dashboard.loadbalancer.server.port=8080"

<!-- gh-comment-id:4367552336 --> @chr0nzz commented on GitHub (May 4, 2026): one issue in your Traefik compose i noticed this ` - "traefik.http.routers.dashboard.loadbalancer.server.port=8085" ` change to this ` - "traefik.http.routers.dashboard.loadbalancer.server.port=8080"`
Author
Owner

@akanealw commented on GitHub (May 4, 2026):

Thanks but I ended up just reverting to the original config with insecure api and put authelia on the dashboard domain.

<!-- gh-comment-id:4367560180 --> @akanealw commented on GitHub (May 4, 2026): Thanks but I ended up just reverting to the original config with insecure api and put authelia on the dashboard domain.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/traefik-manager#30
No description provided.