bonus-edge-proxy/docker-compose.yml

35 lines
803 B
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
devices:
- /dev/ttyS7:/dev/ttyS7
- /dev/ttyS9:/dev/ttyS9
group_add:
- "20" # 例如: "20"
2025-09-30 18:34:50 +08:00
volumes:
- .:/app
# 端口直接映射,无需错开
2025-09-30 18:34:50 +08:00
ports:
- "8888:8888"
- "9999:9999"
command: sleep infinity
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