docker-compose EMQX安装
FCAT 2023/2/14
构建环境:docker、docker-compose
# 配置文件
chown -R 1000:1000 /docker/emqx1/data
vim /docker/docker-compose.yml
version: "3.9"
services:
emqx1:
image: emqx/emqx:5.0.16
container_name: emqx1
privileged: true
ports:
- "1884:1883"
- "8086:8083"
- "8884:8883"
- "8085:8084"
- "18084:18083"
environment:
- TZ=Asia/Shanghai
volumes:
- /etc/localtime:/etc/localtime
- /docker/emqx1/data:/opt/emqx/data
restart: always
deploy:
resources:
limits:
memory: 600M
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 运行
运行:docker-compose up -d
1