/
docker-compose.yml
110 lines (105 loc) · 2.54 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
services:
qpc-server:
build: .
environment:
ANSIBLE_LOG_LEVEL: 3
QPC_DBMS: postgres
QPC_DBMS_DATABASE: qpc
QPC_DBMS_HOST: qpc-db
QPC_DBMS_PASSWORD: qpc
QPC_DBMS_PORT: 5432
QPC_DBMS_USER: qpc
QPC_SERVER_TIMEOUT: 5
NETWORK_CONNECT_JOB_TIMEOUT: 6
NETWORK_INSPECT_JOB_TIMEOUT: 600
QPC_DEBUGPY: 1
QPC_LOG_ALL_ENV_VARS_AT_STARTUP:
REDIS_HOST: qpc-redis
REDIS_PASSWORD: qpc
QPC_ENABLE_CELERY_SCAN_MANAGER: 1
ports:
- "9999:8000"
volumes:
- ./quipucords/secret.txt:/var/data/secret.txt
- .:/app:z
- ./deploy:/deploy:ro
- ./var/sshkeys/:/sshkeys:ro
depends_on:
- qpc-db
- qpc-redis
entrypoint:
- /bin/bash
- -c
- >-
pip install debugpy &&
bash ./deploy/entrypoint_web.sh
qpc-redis:
image: registry.redhat.io/rhel9/redis-6
ports:
- 63791:6379
restart: always
environment:
REDIS_PASSWORD: qpc
qpc-db:
image: registry.redhat.io/rhel8/postgresql-12
environment:
POSTGRESQL_USER: qpc
POSTGRESQL_PASSWORD: qpc
POSTGRESQL_DATABASE: qpc
ports:
- 54321:5432
# Set health checks to wait until postgres has started
healthcheck:
test: [ "CMD", "pg_isready", "-U", "postgres" ]
timeout: 45s
interval: 10s
retries: 10
restart: always
qpc-celery-worker:
build: .
entrypoint:
- /bin/bash
- -c
- >-
pip install debugpy &&
bash ./deploy/entrypoint_celery_worker.sh
depends_on:
- qpc-db
- qpc-redis
volumes:
- ./quipucords/secret.txt:/var/data/secret.txt
- .:/app:ro
- ./deploy:/deploy:ro
- ./var/sshkeys/:/sshkeys:ro
environment:
ANSIBLE_LOG_LEVEL: 3
NETWORK_CONNECT_JOB_TIMEOUT: 6
NETWORK_INSPECT_JOB_TIMEOUT: 600
QPC_DBMS: postgres
QPC_DBMS_DATABASE: qpc
QPC_DBMS_HOST: qpc-db
QPC_DBMS_PASSWORD: qpc
QPC_DBMS_PORT: 5432
QPC_DBMS_USER: qpc
QPC_DEBUGPY: 1
QPC_LOG_ALL_ENV_VARS_AT_STARTUP:
QPC_SERVER_TIMEOUT: 5
REDIS_HOST: qpc-redis
REDIS_PASSWORD: qpc
QPC_ENABLE_CELERY_SCAN_MANAGER: 1
scan-target:
build:
context: .
dockerfile: Dockerfile.scan-target
privileged: true
ports:
- 2222:2222
proxy:
image: docker.io/nginx
volumes:
- ./deploy/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./quipucords/staticfiles:/staticfiles:z
ports:
- 8080:80
depends_on:
- qpc-server