-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
165 lines (157 loc) · 5.22 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
version: '3'
services:
v6y-bff:
extends:
file: docker-compose.base.yml
service: v6y-service-base
command: pnpm run start:bff
ports:
- "4001:4001"
image: ghcr.io/<registry-owner>/v6y-bff:latest
environment:
- PSQL_DB_HOST=${PSQL_DB_HOST}
- PSQL_DB_NAME=${PSQL_DB_NAME}
- PSQL_DB_USER=${PSQL_DB_USER}
- PSQL_DB_PASSWORD=${PSQL_DB_PASSWORD}
- PSQL_DB_PORT=${PSQL_DB_PORT}
- GITLAB_PRIVATE_TOKEN=${GITLAB_PRIVATE_TOKEN}
- GITHUB_PRIVATE_TOKEN=${GITHUB_PRIVATE_TOKEN}
- JWT_SECRET=${JWT_SECRET}
- V6Y_BFF_API_PATH=${V6Y_BFF_API_PATH}
- V6Y_BFF_API_PORT=${V6Y_BFF_API_PORT}
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:4001/health" ]
interval: 30s
timeout: 10s
retries: 3
v6y-bfb-main-analyzer:
extends:
file: docker-compose.base.yml
service: v6y-service-base
command: pnpm run start:bfb:main
ports:
- "4002:4002"
image: ghcr.io/<registry-owner>/v6y-bfb-main-analyzer:latest
environment:
- PSQL_DB_HOST=${PSQL_DB_HOST}
- PSQL_DB_NAME=${PSQL_DB_NAME}
- PSQL_DB_USER=${PSQL_DB_USER}
- PSQL_DB_PASSWORD=${PSQL_DB_PASSWORD}
- PSQL_DB_PORT=${PSQL_DB_PORT}
- GITLAB_PRIVATE_TOKEN=${GITLAB_PRIVATE_TOKEN}
- GITHUB_PRIVATE_TOKEN=${GITHUB_PRIVATE_TOKEN}
- JWT_SECRET=${JWT_SECRET}
- V6Y_MAIN_API_PATH=${V6Y_MAIN_API_PATH}
- V6Y_MAIN_API_PORT=${V6Y_MAIN_API_PORT}
- V6Y_STATIC_ANALYZER_API_PATH=${V6Y_STATIC_ANALYZER_API_PATH}
- V6Y_DYNAMIC_ANALYZER_API_PATH=${V6Y_DYNAMIC_ANALYZER_API_PATH}
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:4002/health" ]
interval: 30s
timeout: 10s
retries: 3
v6y-bfb-static-code-auditor:
extends:
file: docker-compose.base.yml
service: v6y-service-base
command: pnpm run start:bfb:static
ports:
- "4003:4003"
image: ghcr.io/<registry-owner>/v6y-bfb-static-code-auditor:latest
environment:
- PSQL_DB_HOST=${PSQL_DB_HOST}
- PSQL_DB_NAME=${PSQL_DB_NAME}
- PSQL_DB_USER=${PSQL_DB_USER}
- PSQL_DB_PASSWORD=${PSQL_DB_PASSWORD}
- PSQL_DB_PORT=${PSQL_DB_PORT}
- GITLAB_PRIVATE_TOKEN=${GITLAB_PRIVATE_TOKEN}
- GITHUB_PRIVATE_TOKEN=${GITHUB_PRIVATE_TOKEN}
- JWT_SECRET=${JWT_SECRET}
- V6Y_STATIC_ANALYZER_API_PATH=${V6Y_STATIC_ANALYZER_API_PATH}
- V6Y_STATIC_ANALYZER_API_PORT=${V6Y_STATIC_ANALYZER_API_PORT}
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:4003/health" ]
interval: 30s
timeout: 10s
retries: 3
v6y-bfb-url-dynamic-auditor:
extends:
file: docker-compose.base.yml
service: v6y-service-base
command: pnpm run start:bfb:dynamic
ports:
- "4004:4004"
image: ghcr.io/<registry-owner>/v6y-bfb-url-dynamic-auditor:latest
environment:
- PSQL_DB_HOST=${PSQL_DB_HOST}
- PSQL_DB_NAME=${PSQL_DB_NAME}
- PSQL_DB_USER=${PSQL_DB_USER}
- PSQL_DB_PASSWORD=${PSQL_DB_PASSWORD}
- PSQL_DB_PORT=${PSQL_DB_PORT}
- GITLAB_PRIVATE_TOKEN=${GITLAB_PRIVATE_TOKEN}
- GITHUB_PRIVATE_TOKEN=${GITHUB_PRIVATE_TOKEN}
- JWT_SECRET=${JWT_SECRET}
- V6Y_DYNAMIC_ANALYZER_API_PATH=${V6Y_DYNAMIC_ANALYZER_API_PATH}
- V6Y_DYNAMIC_ANALYZER_API_PORT=${V6Y_DYNAMIC_ANALYZER_API_PORT}
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:4004/health" ]
interval: 30s
timeout: 10s
retries: 3
v6y-bfb-devops-auditor:
extends:
file: docker-compose.base.yml
service: v6y-service-base
command: pnpm run start:bfb:devops
ports:
- "4005:4005"
image: ghcr.io/<registry-owner>/v6y-bfb-devops-auditor:latest
environment:
- PSQL_DB_HOST=${PSQL_DB_HOST}
- PSQL_DB_NAME=${PSQL_DB_NAME}
- PSQL_DB_USER=${PSQL_DB_USER}
- PSQL_DB_PASSWORD=${PSQL_DB_PASSWORD}
- PSQL_DB_PORT=${PSQL_DB_PORT}
- GITLAB_PRIVATE_TOKEN=${GITLAB_PRIVATE_TOKEN}
- GITHUB_PRIVATE_TOKEN=${GITHUB_PRIVATE_TOKEN}
- JWT_SECRET=${JWT_SECRET}
- V6Y_DEVOPS_API_PATH=${V6Y_DEVOPS_API_PATH}
- V6Y_DEVOPS_API_PORT=${V6Y_DEVOPS_API_PORT}
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:4005/health" ]
interval: 30s
timeout: 10s
retries: 3
v6y-frontend:
extends:
file: docker-compose.base.yml
service: v6y-service-base
command: pnpm run start:frontend
ports:
- "4006:4006"
image: ghcr.io/<registry-owner>/v6y-frontend:latest
environment:
- NEXT_PUBLIC_V6Y_BFF_PATH=${NEXT_PUBLIC_V6Y_BFF_PATH}
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:4006/health" ]
interval: 30s
timeout: 10s
retries: 3
v6y-frontend-bo:
extends:
file: docker-compose.base.yml
service: v6y-service-base
command: pnpm run start:frontend:bo
ports:
- "4008:4008"
image: ghcr.io/<registry-owner>/v6y-frontend-bo:latest
environment:
- NEXT_PUBLIC_V6Y_BFF_PATH=${NEXT_PUBLIC_V6Y_BFF_PATH}
- NEXTAUTH_URL=${NEXTAUTH_URL}
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:4008/health" ]
interval: 30s
timeout: 10s
retries: 3
volumes:
mono-node-modules: null