-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (65 loc) · 1.74 KB
/
docker-compose.yml
File metadata and controls
69 lines (65 loc) · 1.74 KB
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
version: '3.8'
services:
kali-container:
# Use baseline image instead of building from Dockerfile
image: kali-baseline:latest
container_name: kali-container
privileged: true
cgroupns: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
# Adjust these paths to match your host directories
- ~/kali-docker-shares/ovpn-configs:/ovpn-configs:ro
- ~/kali-docker-shares/scripts:/host-scripts:rw
tmpfs:
- /tmp
- /run
- /run/lock
ports:
- "4444:22" # SSH access - adjust port as needed
stdin_open: true
tty: true
restart: unless-stopped
# Example: Multiple containers from same baseline
kali-htb:
image: kali-baseline:latest
container_name: kali-htb
privileged: true
cgroupns: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
- ~/kali-docker-shares/ovpn-configs:/ovpn-configs:ro
- ~/kali-docker-shares/scripts:/host-scripts:rw
tmpfs:
- /tmp
- /run
- /run/lock
ports:
- "4444:22"
stdin_open: true
tty: true
restart: unless-stopped
profiles: ["htb"] # Start with: docker-compose --profile htb up -d
kali-thm:
image: kali-baseline:latest
container_name: kali-thm
privileged: true
cgroupns: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
- ~/kali-docker-shares/ovpn-configs:/ovpn-configs:ro
- ~/kali-docker-shares/scripts:/host-scripts:rw
tmpfs:
- /tmp
- /run
- /run/lock
ports:
- "5555:22"
stdin_open: true
tty: true
restart: unless-stopped
profiles: ["thm"] # Start with: docker-compose --profile thm up -d
# Optional: Add a network for multiple containers if needed
networks:
default:
name: kali-network