forked from intel/Training-and-Learning-Suite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.native.yml
231 lines (219 loc) · 5.84 KB
/
docker-compose.native.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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
# Copyright (c) 2020 Intel Corporation.
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
version: "3.6"
services:
tls_redis:
image: redis-tls:2.0
container_name: tls_redis
read_only: false
build:
context: .
dockerfile: tlsredis.Dockerfile
args:
user: "tls"
security_opt:
- no-new-privileges
ports:
- "127.0.0.1:6379:6379"
networks:
- default
volumes:
- redis_data:/data
restart: unless-stopped
environment:
- PYTHONIOENCODING="utf-8"
secrets:
- ca_tls
- redis_cert
- redis_key
- redis_pass
tls_mongo:
image: mongo:4.4
container_name: tls_mongo
read_only: false
volumes:
- mongo_tmp:/tmp
- mongo_data:/data/db
- ./conf/mongo/create-user.js:/docker-entrypoint-initdb.d/create-user.js:ro
ports:
- "127.0.0.1:27017:27017"
networks:
- default
restart: unless-stopped
security_opt:
- no-new-privileges
command:
- "--tlsMode=allowTLS"
- "--tlsCertificateKeyFile=/run/secrets/mongodb_key"
- "--tlsCAFile=/run/secrets/ca_tls"
- "--tlsAllowConnectionsWithoutCertificates"
environment:
- MONGO_INITDB_DATABASE=tls20
- MONGO_INITDB_ROOT_USERNAME_FILE=/run/secrets/mongodb_user
- MONGO_INITDB_ROOT_PASSWORD_FILE=/run/secrets/mongodb_pass
secrets:
- ca_tls
- mongodb_pass
- mongodb_user
- mongodb_key
tls_rabbitmq:
image: tls_rabbitmq-mqtt:2.0
container_name: tls_rabbitmq
read_only: false
ports:
- "1883:1883"
- "8883:8883"
- "15672:15672"
build:
context: .
dockerfile: tlsrabbitmq.Dockerfile
security_opt:
- no-new-privileges
restart: unless-stopped
secrets:
- ca_tls
- rabbitmq_cert
- rabbitmq_key
- mqtt_user
- mqtt_pwd
tls_proxy:
image: tlsnginx:2.0
container_name: tls_proxy
depends_on:
- tls_mongo
- tls_redis
- tls_rabbitmq
read_only: false
build:
context: .
dockerfile: tlsproxy.Dockerfile
security_opt:
- no-new-privileges
restart: unless-stopped
ports:
- "443:443"
volumes:
- proxy_data:/etc/nginx
- proxy_tmp:/tmp
networks:
- default
- cvat_cvat
environment:
- CVAT_URL=http://172.17.0.1:8080
- TLS_API_URL=https://172.17.0.1:1337
- TLS_UI_URL=http://172.17.0.1:3000
secrets:
- ca_tls
- tlsserver_cert
- tlsserver_key
tls_openvino:
image: openvino/ubuntu18_dev:2021.4.2
container_name: tls_openvino
read_only: true
security_opt:
- no-new-privileges
volumes:
- openvino:/opt/intel/openvino
volumes:
openvino:
proxy_tmp:
driver_opts:
type: none
o: bind
device: /opt/intel/tls/proxy/tmp
proxy_data:
driver_opts:
type: none
o: bind
device: /opt/intel/tls/proxy/etc
redis_data:
driver_opts:
type: none
o: bind
device: /opt/intel/tls/redis
mongo_tmp:
driver_opts:
type: none
o: bind
device: /opt/intel/tls/mongodb/tmp
mongo_data:
driver_opts:
type: none
o: bind
device: /opt/intel/tls/mongodb/data
dataset_data:
driver_opts:
type: none
o: bind
device: /opt/intel/tls/dataset
dataset_train_data:
driver_opts:
type: none
o: bind
device: /opt/intel/tls/datatrain
tf_tmp_data:
driver_opts:
type: none
o: bind
device: /opt/intel/tls/tmp_tf
tmp_data:
driver_opts:
type: none
o: bind
device: /opt/intel/tls/tmp
networks:
cvat_cvat:
external: true
secrets:
ca_tls:
file: thirdparty/security/ca/ca_certificate.pem
tlscore_cert:
file: thirdparty/security/TLS_core_cert.crt
tlscore_key:
file: thirdparty/security/TLS_core_key.pem
tlsapiui_user:
file: thirdparty/security/TLS_apiui_username.txt
tlsapiui_pass:
file: thirdparty/security/TLS_apiui_pass.txt
tlsapiui_cert:
file: thirdparty/security/TLS_apiui_cert.crt
tlsapiui_key:
file: thirdparty/security/TLS_apiui_key.pem
tlsserver_cert:
file: thirdparty/security/TLS_server_cert.crt
tlsserver_key:
file: thirdparty/security/TLS_server_key.pem
mongodb_key:
file: thirdparty/security/TLS_mongodb.pem
mongodb_pass:
file: thirdparty/security/TLS_mongodb_pass.txt
mongodb_user:
file: thirdparty/security/TLS_mongodb_username.txt
rabbitmq_cert:
file: thirdparty/security/TLS_rabbitmq_cert.crt
rabbitmq_key:
file: thirdparty/security/TLS_rabbitmq_key.pem
redis_cert:
file: thirdparty/security/TLS_redis_cert.crt
redis_key:
file: thirdparty/security/TLS_redis_key.pem
redis_pass:
file: thirdparty/security/TLS_redis_pass.txt
mqtt_user:
file: thirdparty/security/TLS_mqtt_username.txt
mqtt_pwd:
file: thirdparty/security/TLS_mqtt_pass.txt