forked from erliuwang/iot-dc3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
202 lines (186 loc) · 4.31 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
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
197
198
199
200
201
202
version: '3.7'
services:
# 配置 docker compose
dc3-base:
build:
context: ./dc3/dependences/base/
dockerfile: ./Dockerfile
image: pnoker/dc3-base:3.0
dc3-mariadb:
build:
context: ./dc3/dependences/mariadb/
dockerfile: ./Dockerfile
image: pnoker/dc3-mariadb:3.0
restart: always
ports:
- 3306:3306
container_name: dc3-mariadb
hostname: iotdc3.mariadb
dc3-redis:
build:
context: ./dc3/dependences/redis/
dockerfile: ./Dockerfile
image: pnoker/dc3-redis:3.0
restart: always
ports:
- 6379:6379
container_name: dc3-redis
hostname: iotdc3.redis
dc3-rabbitmq:
build:
context: ./dc3/dependences/rabbitmq/
dockerfile: ./Dockerfile
image: pnoker/dc3-rabbitmq:3.0
restart: always
ports:
- 5672:5672
- 1883:1883
- 61613:61613
- 15672:15672
container_name: dc3-rabbitmq
hostname: iotdc3.rabbitmq
dc3-nginx:
build:
context: ./dc3/dependences/nginx/
dockerfile: ./Dockerfile
image: pnoker/dc3-nginx:3.0
restart: always
ports:
- 80:80
- 1935:1935
container_name: dc3-nginx
hostname: iotdc3.nginx
dc3-gateway:
build:
context: ./dc3-gateway/
dockerfile: ./Dockerfile
image: pnoker/dc3-gateway:3.0
restart: always
ports:
- 8000:8000
links:
- dc3-register:iotdc3.register
- dc3-dbs:iotdc3.dbs
container_name: dc3-gateway
hostname: iotdc3.gateway
dc3-register:
build:
context: ./dc3-center/dc3-register/
dockerfile: ./Dockerfile
image: pnoker/dc3-register:3.0
restart: always
ports:
- 8100:8100
container_name: dc3-register
hostname: iotdc3.register
dc3-monitor:
build:
context: ./dc3-center/dc3-monitor/
dockerfile: ./Dockerfile
image: pnoker/dc3-monitor:3.0
restart: always
ports:
- 8200:8200
links:
- dc3-register:iotdc3.register
container_name: dc3-monitor
hostname: iotdc3.monitor
dc3-dbs:
build:
context: ./dc3-center/dc3-dbs/
dockerfile: ./Dockerfile
image: pnoker/dc3-dbs:3.0
restart: always
ports:
- 8300:8300
links:
- dc3-register:iotdc3.register
- dc3-mariadb:iotdc3.mariadb
- dc3-redis:iotdc3.redis
container_name: dc3-dbs
hostname: iotdc3.dbs
dc3-collect:
build:
context: ./dc3-center/dc3-collect/
dockerfile: ./Dockerfile
image: pnoker/dc3-collect:3.0
restart: always
ports:
- 8500:8500
links:
- dc3-register:iotdc3.register
container_name: dc3-collect
hostname: iotdc3.collect
dc3-manager:
build:
context: ./dc3-device/dc3-manager/
dockerfile: ./Dockerfile
image: pnoker/dc3-manager:3.0
restart: always
ports:
- 8600:8600
links:
- dc3-register:iotdc3.register
container_name: dc3-manager
hostname: iotdc3.manager
dc3-group:
build:
context: ./dc3-device/dc3-group/
dockerfile: ./Dockerfile
image: pnoker/dc3-group:3.0
restart: always
ports:
- 8700:8700
links:
- dc3-register:iotdc3.register
container_name: dc3-group
hostname: iotdc3.group
dc3-opc:
build:
context: ./dc3-transfer/dc3-opc/
dockerfile: ./Dockerfile
image: pnoker/dc3-opc:3.0
restart: always
ports:
- 8810:8810
links:
- dc3-register:iotdc3.register
container_name: dc3-opc
hostname: iotdc3.opc
dc3-opc-ua:
build:
context: ./dc3-transfer/dc3-opc-ua/
dockerfile: ./Dockerfile
image: pnoker/dc3-opc-ua:3.0
restart: always
ports:
- 8820:8820
links:
- dc3-register:iotdc3.register
container_name: dc3-opc-ua
hostname: iotdc3.opcua
dc3-rtmp:
build:
context: ./dc3-transfer/dc3-rtmp/
dockerfile: ./Dockerfile
image: pnoker/dc3-rtmp:3.0
restart: always
ports:
- 8830:8830
links:
- dc3-register:iotdc3.register
- dc3-dbs:iotdc3.dbs
container_name: dc3-rtmp
hostname: iotdc3.rtmp
dc3-resource:
build:
context: ./dc3-transfer/dc3-resource/
dockerfile: ./Dockerfile
image: pnoker/dc3-resource:3.0
restart: always
ports:
- 8840:8840
links:
- dc3-register:iotdc3.register
container_name: dc3-resource
hostname: iotdc3.resource