WebRtc_QingGan/docker-compose.yml
Song367 345533ed6e
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 4m29s
添加yaml 部署文件
2025-07-29 18:23:17 +08:00

26 lines
586 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

version: '3.8'
services:
webrtc-app:
build: .
ports:
- "3000:3000" # 映射到主机的3000端口外网可访问
environment:
- NODE_ENV=production
- PORT=3000
volumes:
- ./videos:/app/videos # 挂载视频文件目录
- ./logs:/app/logs # 挂载日志目录
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
networks:
- webrtc-network
networks:
webrtc-network:
driver: bridge