bonus-edge-proxy/docker-compose.yml

62 lines
1.4 KiB
YAML
Raw Normal View History

# docker-compose.yml
2025-09-30 18:34:50 +08:00
services:
edge-proxy-dev:
2025-10-13 13:55:15 +08:00
build:
context: .
dockerfile: docker/Dockerfile
container_name: edge-proxy-shared-dev
image: edge-proxy-edge-proxy-dev:latest
2025-09-30 18:34:50 +08:00
platform: linux/arm64
2025-10-20 16:30:40 +08:00
network_mode: "host"
2025-10-20 10:39:14 +08:00
privileged: true
devices:
- /dev/ttyS7:/dev/ttyS7
- /dev/ttyS9:/dev/ttyS9
2025-10-21 18:16:57 +08:00
- /dev/snd:/dev/snd
2025-10-17 17:20:45 +08:00
# --- VPU/NPU/RGA/GPU 硬件访问 ---
- /dev/mpp_service:/dev/mpp_service
- /dev/rga:/dev/rga
2025-10-20 09:15:55 +08:00
- /dev/dri:/dev/dri
2025-10-17 17:20:45 +08:00
2025-10-21 15:34:24 +08:00
- source: /sys/bus/iio/devices/iio:device0
target: /sys/bus/iio/devices/iio:device0
group_add:
2025-10-14 16:21:56 +08:00
- "20"
2025-10-17 17:20:45 +08:00
- "44"
- "110"
2025-10-21 18:16:57 +08:00
- "29"
2025-09-30 18:34:50 +08:00
volumes:
- .:/app
2025-10-24 13:11:33 +08:00
- /tmp/.X11-unix:/tmp/.X11-unix:rw
environment:
- DISPLAY=$DISPLAY
# ports:
# - "8888:8888"
# - "9999:9999"
# - "502:502"
# - "8080:8080"
2025-10-20 16:30:40 +08:00
dns:
- 8.8.8.8
- 114.114.114.114
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