-
Notifications
You must be signed in to change notification settings - Fork 41
/
docker-compose.yml
39 lines (31 loc) · 817 Bytes
/
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
version: "3"
services:
vulnogram-mongo:
image: mongo:6
command: mongod --port ${MONGO_PORT:-27017}
restart: always
volumes:
- vulnogram-mongo-data:/data/db
env_file:
- ${ENV_VAR_PATH:-example.env}
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:${MONGO_PORT:-27017}/vulnogram --quiet
interval: 5s
timeout: 5s
retries: 3
start_period: 20s
ports:
- ${MONGO_PORT:-27017}:${MONGO_PORT:-27017}
vulnogram:
build: .
image: vulnogram/vulnogram:latest
container_name: vulnogram
ports:
- ${VULNOGRAM_PORT:-3555}:${VULNOGRAM_PORT:-3555}
env_file:
- ${ENV_VAR_PATH:-example.env}
depends_on:
vulnogram-mongo:
condition: service_healthy
volumes:
vulnogram-mongo-data: