-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdocker-compose.emqx.yml
More file actions
executable file
·41 lines (38 loc) · 1021 Bytes
/
docker-compose.emqx.yml
File metadata and controls
executable file
·41 lines (38 loc) · 1021 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
29
30
31
32
33
34
35
36
37
38
39
40
41
version: '3'
services:
emqx1:
image: emqx/emqx:4.4.16
mem_limit: 2g
environment:
- "EMQX_NAME=emqx"
- "EMQX_HOST=node1.emqx.io"
- "EMQX_MQTT__MAX_TOPIC_ALIAS=10"
- "EMQX_LOADED_PLUGINS=emqx_management,emqx_auth_username,emqx_recon,emqx_retainer,emqx_dashboard,emqx_sn,emqx_rule_engine"
volumes:
- ./tmp/emqx.lic:/opt/emqx/etc/emqx.lic
# MQTT-SN configuration mount
- ./emqx_conf/emqx_sn.conf:/opt/emqx/etc/plugins/emqx_sn.conf
# persist these to keep data across container restarts
- emqx_data:/opt/emqx/data
- emqx_etc:/opt/emqx/etc
- emqx_log:/opt/emqx/log
healthcheck:
test: ["CMD", "/opt/emqx/bin/emqx_ctl", "status"]
interval: 5s
timeout: 25s
retries: 5
networks:
emqx-bridge:
aliases:
- node1.emqx.io
ports:
- "18083:18083"
- "1885:1885/udp"
- "1883:1883"
networks:
emqx-bridge:
driver: bridge
volumes:
emqx_data:
emqx_etc:
emqx_log: