feat: enhance health checks in docker-compose and improve WebRTC stats collection

This commit is contained in:
2025-02-09 02:10:53 +01:00
parent be0e0f8153
commit 7b78f54510
6 changed files with 138 additions and 268 deletions

View File

@@ -6,6 +6,9 @@ services:
- ./webrtc-internals-exporter:/tmp/webrtc-internals-exporter:ro
shm_size: "2g"
attach: false
depends_on:
telegraf:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4444/wd/hub/status"]
interval: 5s
@@ -27,7 +30,6 @@ services:
interval: 5s
timeout: 10s
retries: 5
restart: unless-stopped
networks:
- backend
@@ -44,7 +46,6 @@ services:
condition: service_healthy
environment:
- VIDEO_URL=${VIDEO_URL:?"Video URL is required"}
restart: unless-stopped
ports:
- "9092:9092"
extra_hosts:
@@ -56,4 +57,4 @@ networks:
backend:
ipam:
config:
- subnet: 172.30.0.0/16
- subnet: 172.30.0.0/16