/
/
/
1services:
2 doorbell_app:
3 build: ./doorbell-app
4 container_name: doorbell-app
5 restart: unless-stopped
6 env_file:
7 - .env
8 # GPIO requires privileged + access to specific devices on Pi
9 privileged: true
10 devices:
11 - "/dev/mem:/dev/mem"
12 - "/dev/gpiomem:/dev/gpiomem"
13 - "/dev/vchiq:/dev/vchiq"
14 # Host network so MQTT, HA and Frigate can reach it easily
15 network_mode: host
16
17 doorbell_rtsp:
18 image: mpromonet/v4l2rtspserver:latest
19 container_name: doorbell-rtsp
20 restart: unless-stopped
21 env_file:
22 - .env
23 # Map the camera device into the container
24 devices:
25 - "${VIDEO_DEVICE}:${VIDEO_DEVICE}"
26 network_mode: host
27 command:
28 [
29 "-P", "${RTSP_PORT}",
30 "-W", "${RTSP_WIDTH}",
31 "-H", "${RTSP_HEIGHT}",
32 "-F", "${RTSP_FPS}",
33 "${VIDEO_DEVICE}"
34 ]
35
36