-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
208 lines (195 loc) · 4.49 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
203
204
205
206
207
208
version: "3.8"
services:
ftpd:
build:
context: .
dockerfile: ./ftp/ftpd/Dockerfile
args:
- FLASK=$VERSION_FLASK
- FLASK_RESTFUL=$VERSION_FLASK_RESTFUL
- REQUESTS=$VERSION_REQUESTS
- TIMEZONE=$TIMEZONE
ports:
- "21:21"
- "5101:5101"
- "30000-30009:30000-30009"
volumes:
- /${ROOT_DIR}:/root
environment:
- CONCIERGE_IP_ADDRESS
depends_on:
- backenddb
restart: always
nginx:
image: nginx:1.13
ports:
- "8000:8000"
volumes:
- /nginx/conf:/etc/nginx/conf.d
- /nginx/uwsgi_params:/etc/nginx/uwsgi_params
- ${ROOT_DIR}/static:/static
environment:
- TZ=$TIMEZONE
restart: always
backenddb:
build: ./backenddb
command: uwsgi --threads 8 --processes 8 --socket :8001 --module backenddb.wsgi --py-autoreload 1 --logto /tmp/mylog.log
ports:
- "8001:8001"
volumes:
- ./backenddb:/code
- ${ROOT_DIR}/static:/static
- ${ROOT_DIR}:/root
expose:
- "8001"
environment:
- TIMEZONE
depends_on:
- nginx
restart: always
reolink:
build:
context: .
dockerfile: ./camera/brand/reolink/Dockerfile
args:
- FLASK=$VERSION_FLASK
- FLASK_RESTFUL=$VERSION_FLASK_RESTFUL
- REQUESTS=$VERSION_REQUESTS
- TIMEZONE=$TIMEZONE
ports:
- "5102:5102"
volumes:
- /${ROOT_DIR}:/root
environment:
- CONCIERGE_IP_ADDRESS
depends_on:
- backenddb
restart: always
detect_shape_snapshot:
build:
context: .
dockerfile: ./detect_shape/Dockerfile
args:
- FLASK=$VERSION_FLASK
- FLASK_RESTFUL=$VERSION_FLASK_RESTFUL
- TIMEZONE=$TIMEZONE
- REQUESTS=$VERSION_REQUESTS
ports:
- "${PORT_DETECT_SHAPE_SNAPSHOT}:${PORT_DETECT_SHAPE_SNAPSHOT}"
environment:
- CONCIERGE_IP_ADDRESS
- PORT_DETECT_SHAPE=${PORT_DETECT_SHAPE_SNAPSHOT}
volumes:
- /${ROOT_DIR}:/root
restart: always
detect_shape_video:
build:
context: .
dockerfile: ./detect_shape/Dockerfile
args:
- FLASK=$VERSION_FLASK
- FLASK_RESTFUL=$VERSION_FLASK_RESTFUL
- TIMEZONE=$TIMEZONE
- REQUESTS=$VERSION_REQUESTS
ports:
- "${PORT_DETECT_SHAPE_VIDEO}:${PORT_DETECT_SHAPE_VIDEO}"
environment:
- CONCIERGE_IP_ADDRESS
- PORT_DETECT_SHAPE=${PORT_DETECT_SHAPE_VIDEO}
volumes:
- /${ROOT_DIR}:/root
restart: always
detailed_analytics:
build:
context: .
dockerfile: ./detailed_analytics/Dockerfile
args:
- FLASK=$VERSION_FLASK
- FLASK_RESTFUL=$VERSION_FLASK_RESTFUL
- TIMEZONE=$TIMEZONE
- REQUESTS=$VERSION_REQUESTS
ports:
- "5106:5106"
environment:
- CONCIERGE_IP_ADDRESS
volumes:
- /${ROOT_DIR}:/root
restart: always
motion_detection:
build:
context: .
dockerfile: ./motion/Dockerfile
args:
- FLASK=$VERSION_FLASK
- FLASK_RESTFUL=$VERSION_FLASK_RESTFUL
ports:
- "5104:5104"
environment:
- CONCIERGE_IP_ADDRESS
- ROOT_DIR
volumes:
- /${ROOT_DIR}:/root
restart: always
scheduler:
build:
context: .
dockerfile: ./scheduler/Dockerfile
args:
- TIMEZONE=$TIMEZONE
environment:
- CONCIERGE_IP_ADDRESS
- ROOT_DIR
volumes:
- /${ROOT_DIR}:/root
depends_on:
- backenddb
restart: always
influx:
build:
context: .
dockerfile: ./influx/Dockerfile
ports:
- "8086:8086"
environment:
- CONCIERGE_IP_ADDRESS
volumes:
- /camera/influx/data1:/data
- /camera/influx/data2:/var/lib/influxdb
restart: always
grafana:
image: grafana/grafana:7.3.0
ports:
- "3000:3000"
restart: always
interworking:
build:
context: .
dockerfile: ./interworking/Dockerfile
args:
- FLASK=$VERSION_FLASK
- FLASK_RESTFUL=$VERSION_FLASK_RESTFUL
- TIMEZONE=$TIMEZONE
- REQUESTS=$VERSION_REQUESTS
ports:
- "5107:5107"
environment:
- CONCIERGE_IP_ADDRESS
volumes:
- /${ROOT_DIR}:/root
depends_on:
- influx
restart: always
frontend:
build:
context: .
dockerfile: ./frontend/Dockerfile
ports:
- "80:8080"
environment:
- CONCIERGE_IP_ADDRESS
volumes:
- /${ROOT_DIR}:/root
restart: always
networks:
cinternal:
internal: true