Files
docker-debugging-disco/8/docker-compose.yml
2025-07-29 17:29:48 +01:00

36 lines
835 B
YAML

---
# TIP: Why isn't Traefik routing correctly? Don't peek at challenge 7! Try checking the Traefik dashboard on http://localhost:8080/dashboard/
services:
app:
image: git.autonomic.zone/autonomic-cooperative/docker-debugging-disco:0.1.0
environment:
- CHALLENGE=7
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.services.challenge-7.loadbalancer.server.port=8000"
- "traefik.http.routers.challenge-7.rule=Host(`localhost`)"
networks:
proxy:
proxy:
image: traefik
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
proxy:
configs:
- source: traefik_yml
target: /traefik.yml
ports:
- 8000:80
- 8080:8080
networks:
proxy:
configs:
traefik_yml:
file: traefik.yml