Fix traefik routing with multiple networks

This commit is contained in:
Mike Conrad
2025-05-20 09:00:39 -04:00
parent 2b58421079
commit 43f165c782
2 changed files with 21 additions and 17 deletions

View File

@ -14,6 +14,8 @@ services:
scraper: scraper:
labels: labels:
- "traefik.http.routers.scraper.rule=Host(`sentry.docker.localhost`)" - "traefik.http.routers.scraper.rule=Host(`sentry.docker.localhost`)"
- "traefik.http.services.scraper.loadbalancer.server.port=3333"
- "traefik.http.routers.scraper.service=scraper"
networks: networks:
- traefik - traefik
- redis - redis
@ -34,6 +36,8 @@ services:
image: grafana/grafana:latest image: grafana/grafana:latest
labels: labels:
- "traefik.http.routers.grafana.rule=Host(`grafana.docker.localhost`)" - "traefik.http.routers.grafana.rule=Host(`grafana.docker.localhost`)"
- "traefik.http.services.grafana.loadbalancer.server.port=3000"
- "traefik.http.routers.grafana.service=grafana"
networks: networks:
- traefik - traefik
- database - database