-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
51 lines (47 loc) · 1.03 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
# How to use :
# docker-compose up -d
# docker-compose down
# --------------------------------------------------------------------------------
version: '2'
services:
pgdb:
image: postgres
hostname: PGDB
container_name: docker_pgdb
environment:
POSTGRES_DB: msf
POSTGRES_USER: msf
POSTGRES_PASSWORD: msf
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- ./pgdb/data/:/var/lib/postgresql/data/pgdata
# ports:
# - 5432:5432
networks:
vpn:
ipv4_address: 172.168.40.2
restart: unless-stopped
kali:
hostname: KALI
container_name: docker_kali
build:
context: ./kali
dockerfile: ./Dockerfile
stdin_open: true
tty: true
privileged: true
entrypoint: ["/bin/bash"]
networks:
vpn:
ipv4_address: 172.168.40.3
depends_on:
- pgdb
restart: unless-stopped
networks:
vpn:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.168.40.0/24
gateway: 172.168.40.1