-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
46 lines (42 loc) · 1.15 KB
/
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
name: greenbone-scap
services:
db:
image: postgres:15-bookworm
restart: always
environment:
POSTGRES_DB: scap
POSTGRES_USER: scap
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
volumes:
- postgres:/var/lib/postgresql/data
ports:
- 5432:5432
cve:
image: ghcr.io/greenbone/greenbone-scap
depends_on:
- db
environment:
DATABASE_HOST: db
DATABASE_NAME: scap
DATABASE_USER: scap
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
NVD_API_KEY: ${NVD_API_KEY}
volumes:
- data:/mnt/data
command: ["greenbone-cve-download", "--since-from-file", "/mnt/data/last-cve-download", "--store-runtime", "/mnt/data/last-cve-download"]
cpe:
image: ghcr.io/greenbone/greenbone-scap
depends_on:
- db
environment:
DATABASE_HOST: db
DATABASE_NAME: scap
DATABASE_USER: scap
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
NVD_API_KEY: ${NVD_API_KEY}
volumes:
- data:/mnt/data
command: ["greenbone-cpe-download", "--since-from-file", "/mnt/data/last-cpe-download", "--store-runtime", "/mnt/data/last-cpe-download"]
volumes:
postgres:
data: