a813a139dc
- serverrun/:start-all.sh 一键编排 + start-compute/start-emqx + envcopy/encrypt-certs - 服务编排:core(Dockerfile+compose)、compute-engine(build.sh+compose)、mysql、redis、mqtt(EMQX) - serverdata/:新增 compute-data/compute-logs/mysql-data/redis-data/emqx-data/emqx-log - 全服务仅 loopback 暴露,算力引擎 :3000 经 core 代理
24 lines
584 B
YAML
24 lines
584 B
YAML
# MQTT 消息服务(EMQX,大屏/桌面端实时总线)
|
|
services:
|
|
emqx:
|
|
image: emqx/emqx:5.8
|
|
container_name: opc-emqx
|
|
restart: always
|
|
ports:
|
|
- "127.0.0.1:1883:1883" # MQTT
|
|
- "127.0.0.1:18083:18083" # 管理 API
|
|
- "127.0.0.1:8083:8083" # WebSocket
|
|
environment:
|
|
- EMQX_NAME=opc
|
|
- EMQX_HOST=node1.emqx.local
|
|
volumes:
|
|
- ../../serverdata/emqx-data:/opt/emqx/data
|
|
- ../../serverdata/emqx-log:/opt/emqx/log
|
|
networks:
|
|
- opc-network
|
|
|
|
networks:
|
|
opc-network:
|
|
name: opc-network
|
|
external: true
|