-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Description
What version of Traefik are you using (traefik version)?
latest version on docker hub at the date
What is your environment & configuration (arguments, toml...)?
I have 2 VM running with vagrants, both machines has docker swarm, one as a manager and another one as node, and I created a network with the next command:
docker network create --driver overlay --subnet 10.0.9.0/24 my-network
What did you do?
I add a service with traefik and a service with my own app (a simple nginx app), here I let the commands:
docker service create \
--name traefik \
--constraint=node.role==manager \
--publish 80:80 --publish 8080:8080 \
--mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \
--network my-network \
traefik \
--docker \
--docker.swarmmode \
--docker.domain=traefik \
--docker.watch \
--web
And to my app:
docker service create --replicas 3 --name myapp --network my-network --label traefik.port=80 myappimage
And then I went to the manager vagrant IP and IP:8080
What did you expect to see?
just with the IP I expected my app index screen (is working fine just with the container, and my app is just a simple nginx serving a html page
with IP:8080 I expected traefik dashboard
What did you see instead?
just IP: 404 page not found
IP:8080: all right 👍
Chabane
