docker swarm / traefik+portainer – ports shouldnt be available on both domains?

Hey guys,

Traefik and Portainer working (Portainer Agent not included yet) on the right ports – but not on the right domains.

  • portainer should be available on: portainer.intern.domain.tld:5001
  • traefik should be available on: traefik.intern.domain.tld:5003

Actually just portainer and traefik working (nha, or working a bit) – but no matter which domain i'll reach any service on any domain with the given port. But it should be like said and not even on the same domain.


Okay…portainer and traefik still running on any domain showing to host machine ip address. So Reverse actually not working – just the port mapping.


version: "3" services: traefik: image: traefik:latest command: --web --docker --docker.swarmmode --docker.domain=intern.domain.tld --logLevel=DEBUG deploy: placement: constraints: [node.role==manager] restart_policy: condition: on-failure labels: - "traefik.port=8080" - "" - "traefik.frontend.rule=Host:traefik.intern.domain.tld" ports: - "80:80" - "5003:8080" - "443:443" volumes: - /var/run/docker.sock:/var/run/docker.sock - /dev/null:/traefik.toml networks: - proxy portainer: image: portainer/portainer:latest command: --no-auth -H unix:///var/run/docker.sock deploy: placement: constraints: [node.role == manager] labels: - "traefik.portainer.port=9000" - "" - "traefik.frontend.rule=Host:portainer.intern.domain.tld" ports: - "5001:9000" volumes: - /var/run/docker.sock:/var/run/docker.sock networks: - proxy networks: proxy: 

submitted by /u/yFStein
[link] [comments]
Source: Reddit