56kcloud / traefik-training

Traefik Training course resources
https://www.thebyte.io/traefik-training
MIT License
310 stars 161 forks source link

traefik dashboard and whoami.docker.localhost not working #2

Open ghost opened 3 years ago

ghost commented 3 years ago

Describe the bug traefik dashboard and whoami.docker.localhost not working

To Reproduce Steps to reproduce the behavior:

  1. 'run current 02-Configure-Traefik/docker-compose.file.yml'
  2. try opening dashboard
  3. will not open

Expected behavior Add insecure=true in traefik.yml to make dashboard working

but still whoami.docker.localhost is giving 404

jdaku commented 3 years ago

Yes, its not working, even catapp.localhost on chapter-2 also not working;

simsrw73 commented 2 years ago

Describe the bug traefik dashboard and whoami.docker.localhost not working

To Reproduce Steps to reproduce the behavior:

  1. 'run current 02-Configure-Traefik/docker-compose.file.yml'
  2. try opening dashboard
  3. will not open

Expected behavior Add insecure=true in traefik.yml to make dashboard working

but still whoami.docker.localhost is giving 404

In my previous (delete) reply, I forgot one of the changes I had made after I reset. Here is what I posted in the Q&A in the course:

I got one variation to work but some others I tried, which I expected to work, did not work. I obviously still don't know what I'm doing.

Two things: 1) swarmMode wants a different configuration that what is supplied, and exposedByDefault: false requires the service to be enabled.

The config that works is traefik.yml: set swarmMode: false. And docker-compose.file.yml: add under whoami/label and new entry "- traefik.enable=true"