forked from quipucords/quipucords
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (56 loc) · 1.34 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
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
ports:
- "9443:443"
- "5678:5678"
volumes:
- ./quipucords/secret.txt:/var/data/secret.txt
- .:/app
- ./deploy:/deploy
- ./var/sshkeys/:/sshkeys
depends_on:
- qpc-db
restart: always
entrypoint:
- /bin/bash
- -c
- >-
pip install "watchdog[watchmedo]" debugpy &&
watchmedo auto-restart \
-d quipucords -p '*.py' --recursive \
-- bash ./deploy/docker_run.sh
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
scan-target:
build:
context: .
dockerfile: Dockerfile.scan-target
privileged: true
ports:
- 2222:2222