修复工作

This commit is contained in:
2025-09-30 20:56:55 +08:00
parent 6dba13713f
commit 9e36a84354
3 changed files with 10 additions and 19 deletions

View File

@@ -73,25 +73,19 @@ services:
BACKEND_API_URL: http://localhost:${BACKEND_PORT}
container_name: rtsp-frontend
restart: always
ports:
- "${FRONTEND_PORT}:80"
network_mode: "host"
depends_on:
backend:
condition: service_healthy
environment:
TZ: ${TZ}
networks:
- rtsp-network
NGINX_PORT: ${FRONTEND_PORT}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80"]
test: ["CMD", "curl", "-f", "http://localhost:${FRONTEND_PORT}"]
interval: 30s
timeout: 10s
retries: 3
networks:
rtsp-network:
driver: bridge
volumes:
redis-data:
backend-logs: