-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
57 lines (56 loc) · 1.22 KB
/
docker-compose.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
50
51
52
53
54
55
56
57
version: "3"
services:
nginx:
image: dji/nginx:1.0.0
networks:
- cloud_service_bridge
ports:
- "8080:8080"
volumes:
- /etc/localtime:/etc/localtime
cloud_api_sample:
image: dji/cloud_api_sample:1.0.0
depends_on:
- mysql
- emqx
ports:
- "6789:6789"
volumes:
- /etc/localtime:/etc/localtime
hostname: cloud_api_sample
networks:
- cloud_service_bridge
emqx:
image: emqx/emqx:4.4.0
ports:
- "18083:18083"
- "1883:1883"
- "8083:8083"
- "8883:8883"
- "8084:8084"
environment:
- EMQX_ALLOW_ANONYMOUS=true
hostname: emqx-broker
networks:
- cloud_service_bridge
mysql:
image: dji/mysql:1.0.0
networks:
- cloud_service_bridge
ports:
- "3306:3306"
volumes:
# Bug: We need to comment out the following two lines below
#- /etc/group:/etc/group:ro
#- /etc/passwd:/etc/passwd:ro
- /etc/localtime:/etc/localtime
- ./data/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
hostname: cloud_api_sample_mysql
networks:
cloud_service_bridge:
driver: bridge
ipam:
config:
- subnet: 192.168.6.0/24