Created
April 20, 2020 14:12
-
-
Save andif888/624334bcdf6696034c06210cc9815245 to your computer and use it in GitHub Desktop.
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.3" | |
services: | |
traefik: | |
image: "traefik:v2.2" | |
container_name: "traefik" | |
command: | |
- "--log.level=DEBUG" | |
- "--api.insecure=true" | |
- "--providers.docker=true" | |
- "--providers.docker.exposedbydefault=false" | |
- "--entrypoints.web.address=:80" | |
ports: | |
- "8002:80" | |
- "8080:8080" | |
volumes: | |
- "/var/run/docker.sock:/var/run/docker.sock:ro" | |
whoami: | |
image: "containous/whoami" | |
container_name: "simple-service" | |
labels: | |
- "traefik.enable=true" | |
- "traefik.http.routers.whoami.rule=Path(`/blub`)" | |
- "traefik.http.routers.whoami.entrypoints=web" | |
- "traefik.http.services.whoami.loadbalancer.server.port=80" |
Brilliant, that's exactly what I needed! 🤩
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A little different with same result: