Vehicle_Road_Counter/docker-compose.yml

63 lines
1.4 KiB
YAML
Raw Normal View History

2025-12-17 13:32:05 +08:00
# docker-compose.yml
services:
vehicle-road-counter-dev:
build:
2025-12-17 13:32:05 +08:00
context: .
dockerfile: docker/Dockerfile
container_name: vehicle-road-counter-dev
image: vehicle-road-counter-dev:latest
2025-12-17 13:32:05 +08:00
platform: linux/arm64
network_mode: "host"
privileged: true
devices:
- /dev/ttyS7:/dev/ttyS7
- /dev/ttyS9:/dev/ttyS9
- /dev/snd:/dev/snd
# --- VPU/NPU/RGA/GPU 硬件访问 ---
- /dev/mpp_service:/dev/mpp_service
- /dev/rga:/dev/rga
- /dev/dri:/dev/dri
2025-12-17 13:32:05 +08:00
- source: /sys/bus/iio/devices/iio:device0
target: /sys/bus/iio/devices/iio:device0
group_add:
- "20"
2025-12-17 13:32:05 +08:00
- "44"
- "110"
- "29"
volumes:
- .:/app
- /tmp/.X11-unix:/tmp/.X11-unix:rw
environment:
- DISPLAY=$DISPLAY
2025-12-17 13:32:05 +08:00
# ports:
# - "8888:8888"
# - "9999:9999"
# - "502:502"
# - "8080:8080"
dns:
- 8.8.8.8
- 114.114.114.114
2025-12-17 13:32:05 +08:00
command: sleep infinity
media-gateway:
image: bluenviron/mediamtx:latest
container_name: media-gateway
network_mode: "host"
privileged: true
volumes:
- ./mediamtx.yml:/mediamtx.yml
mqtt-broker:
image: eclipse-mosquitto:2.0
container_name: mqtt-broker
restart: unless-stopped
ports:
- "1883:1883"
volumes:
- ./mosquitto/config:/mosquitto/config
- ./mosquitto/data:/mosquitto/data
- ./mosquitto/log:/mosquitto/log