-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (52 loc) · 1.52 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
version: "3.8"
services:
database:
# build: tests/postgres-docker/.
image: "postgres:latest"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
user: postgres
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "db_prod"]
interval: 1s
timeout: 3600s
retries: 24
target:
# image: "python:3.10-bullseye"
build: tests/target-docker/.
ports:
- "8888:8888"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8888"]
interval: 1s
timeout: 3600s
retries: 24
ptdb-test:
build: .
# tty: true
volumes:
- ./tests/db-output/:/root/code/tests/db-output/:rw
- ./src:/root/code/src:ro
- ./Cargo.toml:/root/code/Cargo.toml:ro
- ./tests/test.sh:/root/code/tests/test.sh:ro
- ./tests/test-scripts:/root/code/tests/test-scripts:ro
- ./tests/db-output:/root/code/tests/db-output:rw
- ./configs/etc/ptdb/parsers/:/etc/ptdb/parsers/:ro
- ./configs/etc/ptdb/make-db.sql:/etc/ptdb/make-db.sql:ro
- ./configs/etc/ptdb/config.toml:/etc/ptdb/config.toml:ro
- ./configs/.config/ptdb/:/root/.config/ptdb/:rw
- ./configs/etc/ptdb/templates.toml:/etc/ptdb/templates.toml:ro
environment:
TARGET_IP: pentestdb-target-1
DB_IP: pentestdb-database-1
psql_user: postgres
psql_pass: postgres
DB_NAME: docker
depends_on:
target:
condition: service_healthy
database:
condition: service_healthy