-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-https.yml
49 lines (48 loc) · 1.23 KB
/
docker-compose-https.yml
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
42
43
44
45
46
47
48
49
version: '3'
services:
emqx:
container_name: "home_chat_emqx"
image: "emqx/emqx:v4.1.1"
environment:
- "EMQX_LOADED_PLUGINS=emqx_dashboard,emqx_management,emqx_rule_engine,emqx_retainer"
- "PLATFORM_DATA_DIR=/opt/emqx/data"
ports:
# host:container management
#- "8081:8081"
# host:container mqtt
- "1883:1883"
# host:container mqtts
- "8883:8883"
# host:container ws
- "8083:8083"
# host:container wss
- "8084:8084"
# host:container dashboard
- "18083:18083"
volumes:
- ./etc/https/emqx.conf:/opt/emqx/etc/emqx.conf
- ./etc/cert/key.pem:/opt/emqx/etc/certs/key.pem
- ./etc/cert/cert.pem:/opt/emqx/etc/certs/cert.pem
#- ./data:/opt/emqx/data
networks:
- home_chat
nginx:
depends_on:
- emqx
container_name: "home_chat_nginx"
image: "nginx:stable"
ports:
# host:container http port
- "80:80"
- "443:443"
volumes:
# host:container http config
- ./etc/cert:/etc/cert
- ./etc/https/nginx.conf:/etc/nginx/nginx.conf
# host:container app directory
- ./build:/usr/share/nginx/html:ro
networks:
- home_chat
networks:
home_chat:
external: true