Created
October 29, 2020 13:34
-
-
Save kristianheljas/1bc5d61b76c41a46590ab7f5525935da to your computer and use it in GitHub Desktop.
Traefik gets invalid IP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.8" | |
services: | |
traefik: | |
image: "traefik:v2.3" | |
command: | |
- --log.level=DEBUG | |
- --api.insecure=true | |
- --api.dashboard=true | |
- --api.debug=true | |
- --providers.docker=true | |
- --providers.docker.exposedbydefault=false | |
- --entrypoints.web.address=:80 | |
- --providers.docker.network=web | |
ports: | |
- "80:80" | |
- "8080:8080" | |
volumes: | |
- "/var/run/docker.sock:/var/run/docker.sock:ro" | |
networks: | |
- web | |
whoami: | |
image: "traefik/whoami" | |
labels: | |
- traefik.enable=true | |
- traefik.http.routers.whoami.rule=Host(`whoami.localhost`) | |
- traefik.http.routers.whoami.entrypoints=web | |
- traefik.docker.network=web | |
networks: | |
- web | |
- backend | |
networks: | |
web: | |
backend: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment