Enhance Docker Compose configuration and improve camera manager error handling
- Added container names for better identification of services in docker-compose.yml. - Refactored CameraManager to include error handling during initialization of camera recorders and streamers, ensuring the system remains operational even if some components fail. - Updated frontend components to support new MQTT Debug Panel functionality, enhancing monitoring capabilities.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
services:
|
||||
api:
|
||||
container_name: usda-vision-api
|
||||
build:
|
||||
context: ./camera-management-api
|
||||
dockerfile: Dockerfile
|
||||
@@ -45,6 +46,7 @@ services:
|
||||
network_mode: host
|
||||
|
||||
web:
|
||||
container_name: usda-vision-web
|
||||
image: node:20-alpine
|
||||
working_dir: /app
|
||||
env_file:
|
||||
@@ -66,6 +68,7 @@ services:
|
||||
- "8080:8080"
|
||||
|
||||
video-remote:
|
||||
container_name: usda-vision-video-remote
|
||||
image: node:20-alpine
|
||||
working_dir: /app
|
||||
environment:
|
||||
@@ -86,6 +89,7 @@ services:
|
||||
- "3001:3001"
|
||||
|
||||
vision-system-remote:
|
||||
container_name: usda-vision-vision-system-remote
|
||||
image: node:20-alpine
|
||||
working_dir: /app
|
||||
environment:
|
||||
@@ -105,6 +109,7 @@ services:
|
||||
- "3002:3002"
|
||||
|
||||
scheduling-remote:
|
||||
container_name: usda-vision-scheduling-remote
|
||||
image: node:20-alpine
|
||||
working_dir: /app
|
||||
env_file:
|
||||
@@ -125,6 +130,7 @@ services:
|
||||
- "3003:3003"
|
||||
|
||||
media-api:
|
||||
container_name: usda-vision-media-api
|
||||
build:
|
||||
context: ./media-api
|
||||
dockerfile: Dockerfile
|
||||
@@ -150,6 +156,7 @@ services:
|
||||
# mem_reservation: 512m
|
||||
|
||||
mediamtx:
|
||||
container_name: usda-vision-mediamtx
|
||||
image: bluenviron/mediamtx:latest
|
||||
volumes:
|
||||
- ./mediamtx.yml:/mediamtx.yml:ro
|
||||
|
||||
Reference in New Issue
Block a user