-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
196 lines (195 loc) · 5.55 KB
/
docker-compose.yml
File metadata and controls
196 lines (195 loc) · 5.55 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
version: '3'
services:
androidlink:
image: harbor.edgesync.cloud/xian-embedded/eim/manager:v4.0.1
restart: always
depends_on:
- mqtt
- db
volumes:
- ./logs/manager:/root/adv/manager/logs
- ./data/license:/root/adv/license
- /sys:/sys
- ./logs/repo:/root/adv/repo/logs
ports:
- "8080:8080"
- "30001:30001"
environment:
TZ: "Asia/Shanghai"
DATABASE_TYPE: sqlite3
datacenter: local
subscriptionId: "123"
company: "123"
CHECK_LOCAL_HOST: "true"
logging:
driver: json-file
options:
max-size: "100m" # 限制每个日志文件为100MB
dns:
- 8.8.8.8
- 114.114.114.114
env_file:
- ./.env
command: /root/adv/run.sh
container_name: apphub
healthcheck:
test: ["CMD-SHELL", "nc -z localhost 8080 && nc -z localhost 30001"]
interval: 60s
timeout: 30s
retries: 3
networks:
- advnet
ithing:
image: harbor.edgesync.cloud/xian-embedded/eim/ithings:v4.0.1
restart: always
depends_on:
- mqtt
- db
- influxDB
- androidlink
volumes:
- ./logs/ithings:/root/adv/ithings/logs
ports:
- "8082:8082"
environment:
LOG_PATH: "/root/adv/ithings/logs/ithings.log"
TZ: "Asia/Shanghai"
env_file:
- ./.env
command: /root/adv/run.sh
container_name: ithing
healthcheck:
test: ["CMD-SHELL", "nc -z localhost 8082"]
interval: 60s
timeout: 30s
retries: 3
networks:
- advnet
logging:
driver: json-file
options:
max-size: "10m"
mqtt:
image: harbor.edgesync.cloud/xian-embedded/eim/emqx:v4.0.0
restart: always
ports:
- "1883:1883"
- "18083:18083"
- "8083:8083"
env_file:
- ./.env
container_name: m2m_mosquitto
healthcheck:
test: ["CMD", "/opt/emqx/bin/emqx_ctl", "status"]
interval: 60s
timeout: 10s
retries: 3
# start_period: 60s
networks:
- advnet
logging:
driver: json-file
options:
max-size: "10m"
db:
image: harbor.edgesync.cloud/xian-embedded/eim/postgres:v4.0.0
restart: always
ports:
- "5432:5432"
command:
- "postgres"
- "-c"
- "max_connections=500"
- "-c"
- "shared_buffers=1024MB"
- "-c"
- "work_mem=131072"
env_file:
- ./.env
volumes:
- ./data/postgresql/data:/var/lib/postgresql/data
container_name: m2m-postgresSQL
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 60s
timeout: 10s
retries: 3
networks:
- advnet
logging:
driver: json-file
options:
max-size: "10m"
novnc:
image: harbor.edgesync.cloud/xian-embedded/eim/novnc:v4.0.0
restart: always
volumes:
- ./logs/noVnc:/root/adv/log
ports:
- "9191:9191"
- "5901:5901"
- "5500:5500"
- "50500-50501:50500-50501"
- "8024:8024"
- "1000:8180"
command: /root/adv/run.sh
healthcheck:
test: ["CMD-SHELL", "nc -z localhost 9191 && nc -z localhost 5500 && nc -z localhost 8024"]
interval: 60s
timeout: 30s
retries: 3
container_name: apphub-nat
networks:
- advnet
logging:
driver: json-file
options:
max-size: "10m"
minio:
image: harbor.edgesync.cloud/xian-embedded/eim/minio:v4.0.0
restart: always
ports:
- "9000:9000"
volumes:
- ./data/minio:/data
command: /root/adv/run.sh
container_name: minio
healthcheck:
test: ["CMD-SHELL", "nc -z localhost 9000"]
interval: 60s
timeout: 30s
retries: 3
networks:
- advnet
logging:
driver: json-file
options:
max-size: "10m"
influxDB:
image: harbor.edgesync.cloud/xian-embedded/eim/influxdb:v4.0.0
restart: always
ports:
- "8086:8086"
volumes:
- ./data/influxdb:/var/lib/influxdb
env_file:
- ./.env
container_name: m2m-influxdb
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8086/health"]
interval: 60s
timeout: 10s
retries: 3
networks:
- advnet
logging:
driver: json-file
options:
max-size: "10m"
networks:
advnet:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.240.10.0/24