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
|