-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (56 loc) · 1.19 KB
/
Copy pathdocker-compose.yml
File metadata and controls
60 lines (56 loc) · 1.19 KB
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
services:
db:
image: postgres:16-alpine
environment:
POSTGRES_USER: vulnchain
POSTGRES_PASSWORD: vulnchain
POSTGRES_DB: vulnchain
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./src/vulnchain/db/migrations:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready -U vulnchain"]
interval: 5s
timeout: 5s
retries: 5
webhook:
build:
context: ./vulnchain-webhook
dockerfile: Dockerfile
ports:
- "9000:9000"
environment:
WEBHOOK_PORT: "9000"
env_file: .env
depends_on:
db:
condition: service_healthy
restart: unless-stopped
agent:
build:
context: .
dockerfile: Dockerfile.agent
ports:
- "8080:8080"
env_file: .env
depends_on:
db:
condition: service_healthy
volumes:
- /tmp/vulnchain-scans:/tmp/vulnchain-scans
- ./src:/app/src
restart: unless-stopped
dashboard:
build:
context: ./dashboard
dockerfile: Dockerfile
ports:
- "3000:3000"
env_file: .env
depends_on:
- agent
restart: unless-stopped
volumes:
postgres_data: