-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
253 lines (253 loc) · 7.69 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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
version: '3.9'
volumes:
mysql:
driver: local
minio:
driver: local
vault:
driver: local
services:
mysql:
image: mysql:latest
container_name: mysql
restart: always
healthcheck:
test: [ "CMD", "mysqladmin" ,"ping", "-h", "localhost" ]
interval: 3s
timeout: 5s
retries: 5
environment:
MYSQL_ROOT_HOST: "%"
MYSQL_ROOT_PASSWORD: start123
volumes:
- mysql:/var/lib/mysql
networks:
hub:
redis:
image: bitnami/redis
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
interval: 3s
timeout: 5s
retries: 5
environment:
ALLOW_EMPTY_PASSWORD: yes
networks:
hub:
minio:
image: minio/minio
healthcheck:
test: bash -c ':> /dev/tcp/127.0.0.1/9000' || exit 1
interval: 3s
timeout: 5s
retries: 5
volumes:
- minio:/data
ports:
- '9000:9000'
environment:
MINIO_ROOT_USER: admin
MINIO_ROOT_PASSWORD: start123
command: server /data
networks:
hub:
mq:
image: rabbitmq:3-management
hostname: mq
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 3s
timeout: 5s
retries: 5
ports:
- '5672:5672'
environment:
RABBITMQ_DEFAULT_USER: root
RABBITMQ_DEFAULT_PASS: start123
networks:
hub:
vault:
image: hashicorp/vault
pull_policy: always
healthcheck:
test: [ "CMD", "wget", "--spider", "--proxy", "off", "http://127.0.0.1:8090/v1/sys/health?standbyok=true" ]
interval: 10s
timeout: 3s
retries: 10
start_period: 5s
volumes:
- vault:/vault
environment:
SKIP_SETCAP: true
VAULT_DEV_ROOT_TOKEN_ID: start123
VAULT_DEV_LISTEN_ADDRESS: 0.0.0.0:8090
networks:
hub:
nginx:
image: nginxproxy/nginx-proxy:alpine
depends_on:
authup:
condition: service_healthy
core:
condition: service_healthy
storage:
condition: service_healthy
messenger:
condition: service_healthy
ports:
- '3000:3000'
volumes:
- './nginx.conf:/etc/nginx/nginx.conf'
- '/var/run/docker.sock:/tmp/docker.sock:ro'
networks:
hub:
authup:
image: authup/authup
pull_policy: always
restart: always
depends_on:
mysql:
condition: service_healthy
redis:
condition: service_healthy
vault:
condition: service_healthy
environment:
DB_TYPE: 'mysql'
DB_HOST: 'mysql'
DB_USERNAME: 'root'
DB_PASSWORD: 'start123'
DB_DATABASE: 'auth'
VAULT: start123@http://vault:8090/v1/
REDIS: redis://redis
PUBLIC_URL: ${AUTHUP_PUBLIC_URL:-http://localhost:3000/auth/}
COOKIE_DOMAIN: ${COOKIE_DOMAIN:-localhost}
AUTHORIZE_REDIRECT_URL: ${PUBLIC_URL:-http://localhost:3000/}
ROBOT_ADMIN_ENABLED: true
networks:
hub:
core:
build: '.'
restart: always
depends_on:
authup:
condition: service_healthy
mq:
condition: service_healthy
mysql:
condition: service_healthy
redis:
condition: service_healthy
vault:
condition: service_healthy
environment:
REDIS_CONNECTION_STRING: redis://redis
VAULT_CONNECTION_STRING: start123@http://vault:8090/v1/
RABBITMQ_CONNECTION_STRING: ${MQ_CONNECTION_URL:-amqp://root:[email protected]}
PUBLIC_URL: ${CORE_PUBLIC_URL:-http://localhost:3000/core/}
HARBOR_URL: ${HARBOR_URL:-}
AUTHUP_URL: http://authup:3000/
DB_TYPE: 'mysql'
DB_HOST: 'mysql'
DB_USERNAME: 'root'
DB_PASSWORD: 'start123'
DB_DATABASE: 'core'
SKIP_PROJECT_APPROVAL: true
SKIP_ANALYSIS_APPROVAL: true
MASTER_IMAGES_BRANCH: ${MASTER_IMAGES_BRANCH:-master}
networks:
hub:
messenger:
build: '.'
restart: always
command: messenger start
depends_on:
authup:
condition: service_healthy
redis:
condition: service_healthy
vault:
condition: service_healthy
environment:
REDIS_CONNECTION_STRING: redis://redis
VAULT_CONNECTION_STRING: start123@http://vault:8090/v1/
AUTHUP_URL: http://authup:3000/
networks:
hub:
analysis-manager:
build: '.'
restart: always
command: analysis-manager start
depends_on:
authup:
condition: service_healthy
mq:
condition: service_healthy
vault:
condition: service_healthy
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
environment:
RABBITMQ_CONNECTION_STRING: ${MQ_CONNECTION_URL:-amqp://root:[email protected]}
VAULT_CONNECTION_STRING: start123@http://vault:8090/v1/
AUTHUP_URL: http://authup:3000/
CORE_URL: http://core:3000/
STORAGE_URL: http://storage:3000/
networks:
hub:
storage:
build: '.'
restart: always
command: storage start
depends_on:
authup:
condition: service_healthy
redis:
condition: service_healthy
minio:
condition: service_healthy
vault:
condition: service_healthy
environment:
DB_TYPE: 'mysql'
DB_HOST: 'mysql'
DB_USERNAME: 'root'
DB_PASSWORD: 'start123'
DB_DATABASE: 'storage'
PUBLIC_URL: ${STORAGE_PUBLIC_URL:-http://localhost:3000/storage/}
REDIS_CONNECTION_STRING: redis://redis
MINIO_CONNECTION_STRING: http://admin:start123@minio:9000
VAULT_CONNECTION_STRING: start123@http://vault:8090/v1/
AUTHUP_URL: http://authup:3000/
networks:
hub:
ui:
build: '.'
restart: always
command: ui start
depends_on:
authup:
condition: service_healthy
core:
condition: service_healthy
storage:
condition: service_healthy
environment:
NUXT_PUBLIC_COOKIE_DOMAIN: ${COOKIE_DOMAIN:-localhost}
NUXT_STORAGE_URL: http://storage:3000/
NUXT_PUBLIC_STORAGE_URL: ${STORAGE_PUBLIC_URL:-http://localhost:3000/storage/}
NUXT_CORE_URL: http://core:3000/
NUXT_PUBLIC_CORE_URL: ${CORE_PUBLIC_URL:-http://localhost:3000/core/}
NUXT_AUTHUP_URL: http://authup:3000/
NUXT_PUBLIC_AUTHUP_URL: ${AUTHUP_PUBLIC_URL:-http://localhost:3000/auth/}
networks:
hub:
networks:
hub:
driver: bridge
driver_opts:
com.docker.network.bridge.name: hub
ipam:
driver: default
config:
- subnet: 172.40.1.0/24