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

@ -1,16 +1,16 @@
name: sentry
services:
scraper:
build:
context: .
target: dev-deps
env_file: .env.develop
volumes:
- ./:/app
- node_modules:/app/node_modules
command: node ace serve --watch
depends_on:
db:
condition: service_healthy
volumes:
node_modules: {}
name: sentry
services:
scraper:
build:
context: .
target: dev-deps
env_file: .env.develop
volumes:
- ./:/app
- node_modules:/app/node_modules
command: node ace serve --watch
depends_on:
db:
condition: service_healthy
volumes:
node_modules: {}

View File

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