-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathemqx.yml
More file actions
28 lines (28 loc) · 1023 Bytes
/
emqx.yml
File metadata and controls
28 lines (28 loc) · 1023 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
services:
emqx:
image: emqx/emqx:5.8
container_name: emqx
ports:
- "1883:1883" # MQTT端口
- "8883:8883" # MQTT加密端口
- "8083:8083" # WebSocket端口
- "8084:8084" # WebSocket加密端口
- "18083:18083" # EMQX Dashboard端口
environment:
- EMQX_NAME=emqx
- EMQX_NODE__COOKIE=secretcookie # 节点通信时的cookie
- service_logo=emqx-original.svg
- service_description=aboutus.emqxDescription
- service_redirect_url=/emqx/home/
- service_account=admin
- service_password=public
volumes:
- /etc/localtime:/etc/localtime:ro
- ${VOLUMES_PATH}/emqx/data:/opt/emqx/data
- ${VOLUMES_PATH}/emqx/log:/opt/emqx/log
- ${VOLUMES_PATH}/emqx/config/emqx.conf:/opt/emqx/etc/emqx.conf
- ${VOLUMES_PATH}/emqx/config/default_api_key.conf:/opt/emqx/etc/default_api_key.conf
- ${VOLUMES_PATH}/emqx/config/acl.conf:/opt/emqx/etc/acl.conf
restart: always
networks:
- default_network