forked from binareio/FastCVE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (38 loc) · 1.36 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
version: "3.7"
services:
#--------------------------------------------------------------------------
# Application Database service
#--------------------------------------------------------------------------
fastcve:
image: "fastcve:${DOCKER_TAG:-latest}"
container_name: fastcve
command: postgres ${ENV_POSTGRES_CONF}
build:
context: $PWD
dockerfile: $PWD/Dockerfile
environment:
- INP_ENV_NAME
- POSTGRES_PASSWORD
- FCDB_USER
- FCDB_PASS
- FCDB_WEB_PARAMS=--host 0.0.0.0 --port 8000 --workers 4
- NVD_API_KEY
volumes:
- vol_fastcve_db:/var/lib/postgresql/data
#- ./config/setenv/:/fastcve/config/setenv
- ./:/tmp
ports:
- "6630:5432"
- "8000:8000"
networks:
- backend
#------------------------------------------------------------------------------
# Definition of networks used
#------------------------------------------------------------------------------
networks:
backend:
#------------------------------------------------------------------------------
# Definition of docker volumes
#------------------------------------------------------------------------------
volumes:
vol_fastcve_db: # DB data for the vuln DB