-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathdocker-compose.yml
89 lines (83 loc) · 1.93 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
version: "3.1"
services:
db:
image: postgres:latest
container_name: kaliinteldb
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: kis
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_USER: kis
POSTGRES_PASSWORD_FILE: /run/secrets/db_password
secrets:
- db_password
kaliintelsuite:
container_name: kaliintelsuite
image: chopicalqui/kali-intelligence-suite:latest
depends_on:
- db
volumes:
- kis_config:/opt/kaliintelsuite/kis/configs/
- kis_data:/kis
environment:
KIS_DB_USER: kis
KIS_DB_PASSWORD_FILE: /run/secrets/db_password
KIS_DB_HOST: db
KIS_DB_PORT: 5432
KIS_DB_NAME: kis
KIS_LOG_PATH: /kis
secrets:
- db_password
build:
context: .
target: production
tty: True
dbtest:
image: postgres:latest
container_name: kaliinteldbtest
volumes:
- db_test_data:/var/lib/postgresql/data
networks:
- kis_testing
environment:
POSTGRES_DB: kis_testing
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_USER: kis
POSTGRES_PASSWORD_FILE: /run/secrets/db_password
secrets:
- db_password
kaliintelsuitetest:
container_name: kaliintelsuitetest
image: chopicalqui/kali-intelligence-suite:test
depends_on:
- dbtest
volumes:
- kis_config:/opt/kaliintelsuite/kis/configs/
- kis_test_data:/kis
networks:
- kis_testing
environment:
KIS_DB_USER: kis
KIS_DB_PASSWORD_FILE: /run/secrets/db_password
KIS_DB_HOST: dbtest
KIS_DB_PORT: 5432
KIS_DB_NAME: kis_testing
KIS_LOG_PATH: /kis
secrets:
- db_password
build:
context: .
target: test
tty: True
secrets:
db_password:
file: /opt/kaliintelsuite/postgres.txt
volumes:
db_data:
kis_config:
kis_data:
kis_test_data:
db_test_data:
networks:
kis_testing: