-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
211 lines (202 loc) · 5.61 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
services:
frontend:
container_name: vexgen_frontend
build:
context: .
dockerfile: ./frontend/Dockerfile
volumes:
- ./frontend:/frontend
depends_on:
backend:
condition: service_healthy
ports:
- '3000:3000'
networks:
- vexgen
backend:
container_name: vexgen_backend
build:
context: .
dockerfile: ./backend/Dockerfile
volumes:
- ./backend:/backend
- .env:/backend/.env
depends_on:
pypi_graph_database:
condition: service_healthy
npm_graph_database:
condition: service_healthy
maven_graph_database:
condition: service_healthy
cargo_graph_database:
condition: service_healthy
nuget_graph_database:
condition: service_healthy
vuln_database_seeder:
condition: service_completed_successfully
ports:
- '8000:8000'
networks:
- vexgen
healthcheck:
test: curl --fail http://localhost:8000/health || exit 1
interval: 10s
start_period: 20s
pypi_graph_database:
env_file: .env
container_name: pypi_neo4j
image: neo4j:5.20.0
environment:
- NEO4J_AUTH=${GRAPH_DB_USER}/${GRAPH_DB_PASSWORD_PYPI}
- NEO4J_PLUGINS=["apoc"]
- NEO4J_server_http_listen__address=:7474
- NEO4J_server_http_advertised__address=:7474
- NEO4J_server_bolt_listen__address=:7687
- NEO4J_server_bolt_advertised__address=:7687
- NEO4J_apoc_export_file_enabled=true
ports:
- '7474:7474'
- '7687:7687'
volumes:
- ./seeds/graphs/pypi_neo4j.cypher.gz:/backups/pypi_neo4j.cypher.gz
networks:
- vexgen
healthcheck:
test: wget http://localhost:7474 || exit 1
interval: 10s
timeout: 10s
retries: 5
start_period: 15s
npm_graph_database:
env_file: .env
container_name: npm_neo4j
image: neo4j:5.20.0
environment:
- NEO4J_AUTH=${GRAPH_DB_USER}/${GRAPH_DB_PASSWORD_NPM}
- NEO4J_PLUGINS=["apoc"]
- NEO4J_server_http_listen__address=:7473
- NEO4J_server_http_advertised__address=:7473
- NEO4J_server_bolt_listen__address=:7686
- NEO4J_server_bolt_advertised__address=:7686
- NEO4J_apoc_export_file_enabled=true
ports:
- '7473:7473'
- '7686:7686'
volumes:
- ./seeds/graphs/npm_neo4j.cypher.gz:/backups/npm_neo4j.cypher.gz
networks:
- vexgen
healthcheck:
test: wget http://localhost:7473 || exit 1
interval: 10s
timeout: 10s
retries: 5
start_period: 15s
maven_graph_database:
env_file: .env
container_name: maven_neo4j
image: neo4j:5.20.0
environment:
- NEO4J_AUTH=${GRAPH_DB_USER}/${GRAPH_DB_PASSWORD_MAVEN}
- NEO4J_PLUGINS=["apoc"]
- NEO4J_server_http_listen__address=:7472
- NEO4J_server_http_advertised__address=:7472
- NEO4J_server_bolt_listen__address=:7685
- NEO4J_server_bolt_advertised__address=:7685
- NEO4J_apoc_export_file_enabled=true
ports:
- '7472:7472'
- '7685:7685'
volumes:
- ./seeds/graphs/maven_neo4j.cypher.gz:/backups/maven_neo4j.cypher.gz
networks:
- vexgen
healthcheck:
test: wget http://localhost:7472 || exit 1
interval: 10s
timeout: 10s
retries: 5
start_period: 15s
cargo_graph_database:
env_file: .env
container_name: cargo_neo4j
image: neo4j:5.20.0
environment:
- NEO4J_AUTH=${GRAPH_DB_USER}/${GRAPH_DB_PASSWORD_CARGO}
- NEO4J_PLUGINS=["apoc"]
- NEO4J_server_http_listen__address=:7471
- NEO4J_server_http_advertised__address=:7471
- NEO4J_server_bolt_listen__address=:7684
- NEO4J_server_bolt_advertised__address=:7684
- NEO4J_apoc_export_file_enabled=true
ports:
- '7471:7471'
- '7684:7684'
volumes:
- ./seeds/graphs/cargo_neo4j.cypher.gz:/backups/cargo_neo4j.cypher.gz
networks:
- vexgen
healthcheck:
test: wget http://localhost:7471 || exit 1
interval: 10s
timeout: 10s
retries: 5
start_period: 15s
nuget_graph_database:
env_file: .env
container_name: nuget_neo4j
image: neo4j:5.20.0
environment:
- NEO4J_AUTH=${GRAPH_DB_USER}/${GRAPH_DB_PASSWORD_NUGET}
- NEO4J_PLUGINS=["apoc"]
- NEO4J_server_http_listen__address=:7470
- NEO4J_server_http_advertised__address=:7470
- NEO4J_server_bolt_listen__address=:7683
- NEO4J_server_bolt_advertised__address=:7683
- NEO4J_apoc_export_file_enabled=true
ports:
- '7470:7470'
- '7683:7683'
volumes:
- ./seeds/graphs/nuget_neo4j.cypher.gz:/backups/nuget_neo4j.cypher.gz
networks:
- vexgen
healthcheck:
test: wget http://localhost:7470 || exit 1
interval: 10s
timeout: 10s
retries: 5
start_period: 15s
vuln_database_seeder:
env_file: .env
container_name: mongodb_seeder
image: mongo:7.0.11
depends_on:
vuln_database:
condition: service_healthy
volumes:
- ./seeds:/seeds
command:
/seeds/vulndb_seeder.sh
networks:
- vexgen
vuln_database:
env_file: .env
container_name: mongodb
image: mongo:7.0.11
environment:
- MONGO_INITDB_ROOT_USERNAME=${VULN_DB_USER}
- MONGO_INITDB_ROOT_PASSWORD=${VULN_DB_PASSWORD}
ports:
- '27017:27017'
networks:
- vexgen
healthcheck:
test: "echo 'db.stats().ok' | mongosh --username=${VULN_DB_USER} --password=${VULN_DB_PASSWORD} --authenticationDatabase=admin mongodb/testdb"
interval: 30s
timeout: 10s
retries: 5
start_period: 3s
networks:
vexgen:
driver: bridge