prometheus + load-testing
This commit is contained in:
@@ -108,6 +108,8 @@ services:
|
||||
- "traefik.http.services.dispatch-server.loadBalancer.sticky.cookie.name=server_id"
|
||||
- "traefik.http.services.dispatch-server.loadBalancer.sticky.cookie.httpOnly=true"
|
||||
- "traefik.http.services.dispatch-server.loadbalancer.server.port=3000"
|
||||
- "prometheus.scrape=true"
|
||||
- "prometheus.port=3000"
|
||||
|
||||
networks:
|
||||
- discord_network
|
||||
@@ -119,6 +121,20 @@ services:
|
||||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
|
||||
prometheus:
|
||||
image: prom/prometheus:latest
|
||||
container_name: prometheus
|
||||
ports:
|
||||
- "9090:9090"
|
||||
volumes:
|
||||
- "./packages/prometheus/prometheus.prod.yml:/etc/prometheus/prometheus.yml"
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
command:
|
||||
- "--config.file=/etc/prometheus/prometheus.yml"
|
||||
networks:
|
||||
- traefik
|
||||
|
||||
discord-server:
|
||||
build:
|
||||
context: .
|
||||
@@ -146,6 +162,7 @@ services:
|
||||
|
||||
networks:
|
||||
- traefik
|
||||
|
||||
postgres:
|
||||
image: postgres:13
|
||||
container_name: postgres
|
||||
@@ -191,7 +208,7 @@ services:
|
||||
depends_on:
|
||||
- redis
|
||||
volumes:
|
||||
- ./livekit.yaml:/etc/livekit.yaml
|
||||
- ./packages/livekit/livekit.yaml:/etc/livekit.yaml
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.livekit.rule=Host(`livekit.premiumag.de`)"
|
||||
|
||||
Reference in New Issue
Block a user