Fix traefik routing with multiple networks
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
name: sentry
|
name: sentry
|
||||||
services:
|
services:
|
||||||
scraper:
|
scraper:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
@ -12,5 +12,5 @@
|
|||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
volumes:
|
volumes:
|
||||||
node_modules: {}
|
node_modules: {}
|
@ -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
|
||||||
|
Reference in New Issue
Block a user