rtc-voice-chat/backend/docker-compose.yml
2026-04-02 20:15:15 +08:00

19 lines
443 B
YAML

services:
backend:
build:
context: .
dockerfile: Dockerfile
ports:
- "${PORT:-3001}:3001"
env_file:
- .env
environment:
- LOG_LEVEL=${LOG_LEVEL:-warning}
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:3001/health')"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s