Skip to content

dokploy-traefik container loses all docker networks when adjusting additional port mapping (removing duplicate traefik dashboard port mappings) #3022

@josias-r

Description

@josias-r

To Reproduce

  1. Enable treafik dashboard (not sure this is necessary, but the ports added there started my confusion)
  2. Create applications and assign domains. Use isolated networks. Deploy it.
  3. Application access works fine via traefik reverse proxy
    • Docker inspect networks shows that the dokploy-traefik container has the application network assigned as well, as expected
  4. Go to web server additional port mapping settings
  5. remove one of the 8080 mappings
  6. Dokploy will restart dokploy-treafik container.
  7. Treafik cannot access application anymore
    • docker inspect shows, dokploy-treafik container only has one network attached now. all other networks are gone. this is the reason why traefik will gateway timeout on ALL applications now.

Current vs. Expected behavior

Removing the duplicate port mapping (8080 auto created by enabling treafik dashboard) does not break all docker networks that were automatically set-up.

Current: duplicate port mapping, removing one restarts treafik. breaks networks, and duplicate port mapping remains

Expected: no duplicate port mapping, removing it WONT break networks.

Provide environment information

- Ubuntu 22.04.5 LTS
- x86_64
- Dokploy 0.25.6

Which area(s) are affected? (Select all that apply)

Traefik, Docker, Application

Are you deploying the applications where Dokploy is installed or on a remote server?

Same server where Dokploy is installed

Additional context

I stumpled upon this by accident and investigated it. All I did was browse the dokploy dashboard and check the settings.

I was confused that there is a duplicate 8080 tcp port mapping and was not sure where it came from. I just removed one of them and pressed save. Only later I realized that these were auto added from enabling the treafik dashboard. (i dont know where there is a duplicate mapping still tho)

I would expect to update the additional port mappings would NOT remove/break all networks setup by dokploy and treafik

Will you send a PR to fix it?

No

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions