-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
54 lines (50 loc) · 1.07 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
# 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"]
ports:
- 2022:22
- 3232:4444
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