-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
251 lines (234 loc) · 6.07 KB
/
docker-compose.yml
File metadata and controls
251 lines (234 loc) · 6.07 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
version: '3.8'
services:
# Kasm Workspaces services
kasm_agent:
image: kasmweb/agent:${KASM_VERSION:-1.15.0}
container_name: kasm_agent
restart: unless-stopped
networks:
kasm_default_network:
ipv4_address: 10.10.0.3
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/health"]
interval: 30s
timeout: 10s
retries: 3
volumes:
- kasm_db_1.15.0:/data
kasm_api:
image: kasmweb/api:${KASM_VERSION:-1.15.0}
container_name: kasm_api
restart: unless-stopped
networks:
kasm_default_network:
ipv4_address: 10.10.0.5
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/health"]
interval: 30s
timeout: 10s
retries: 3
environment:
- DB_HOST=${DB_HOST:-kasm_db}
- DB_NAME=${DB_NAME:-kasm}
- DB_USER=${DB_USER:-kasmdb}
- DB_PASS=${DB_PASS:-kasmdb_password}
- DB_PORT=${DB_PORT:-5432}
kasm_db:
image: postgres:12-alpine
container_name: kasm_db
restart: unless-stopped
networks:
kasm_default_network:
ipv4_address: 10.10.0.4
kasm_network: {}
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 30s
timeout: 10s
retries: 3
volumes:
- kasm_db_1.15.0:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${DB_USER:-kasmdb}
- POSTGRES_PASSWORD=${DB_PASS:-kasmdb_password}
- POSTGRES_DB=${DB_NAME:-kasm}
kasm_guac:
image: kasmweb/kasm-guac:${KASM_VERSION:-1.15.0}
container_name: kasm_guac
restart: unless-stopped
networks:
kasm_default_network:
ipv4_address: 10.10.0.9
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/health"]
interval: 30s
timeout: 10s
retries: 3
kasm_manager:
image: kasmweb/manager:${KASM_VERSION:-1.15.0}
container_name: kasm_manager
restart: unless-stopped
networks:
kasm_default_network:
ipv4_address: 10.10.0.7
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/health"]
interval: 30s
timeout: 10s
retries: 3
kasm_proxy:
image: kasmweb/nginx:1.25.3
container_name: kasm_proxy
restart: unless-stopped
networks:
kasm_default_network:
ipv4_address: 10.10.0.2
kasm_network: {}
ports:
- "8445:443"
depends_on:
- kasm_api
- kasm_manager
kasm_redis:
image: redis:5-alpine
container_name: kasm_redis
restart: unless-stopped
networks:
kasm_default_network:
ipv4_address: 10.10.0.6
command: redis-server --appendonly yes
kasm_share:
image: kasmweb/share:${KASM_VERSION:-1.15.0}
container_name: kasm_share
restart: unless-stopped
networks:
kasm_default_network:
ipv4_address: 10.10.0.8
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/health"]
interval: 30s
timeout: 10s
retries: 3
# Portainer for container management
portainer:
container_name: portainer
image: portainer/portainer-ce:latest
restart: unless-stopped
security_opt:
- no-new-privileges:true
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- portainer_data:/data
ports:
- "9000:9000"
networks:
- portainer_network
- hack_network
# Evilginx2 in Kasm Workspace
evilginx2-workspace:
image: kasmweb/ubuntu-focal-desktop:1.14.0
container_name: evilginx2-workspace
restart: unless-stopped
ports:
- "6901:6901" # Kasm Web interface for evilginx2
environment:
- VNC_PW=${WORKSPACE_PASSWORD:-password123}
- KASM_USER=evilginx_user
volumes:
- evilginx2_workspace_data:/home/kasm-user/data
- ./setup-evilginx2.sh:/dockerstartup/setup-evilginx2.sh
networks:
- kasm_network
- hack_network
# Gophish in Kasm Workspace
gophish-workspace:
image: kasmweb/ubuntu-focal-desktop:1.14.0
container_name: gophish-workspace
restart: unless-stopped
ports:
- "6902:6901" # Kasm Web interface for gophish
environment:
- VNC_PW=${WORKSPACE_PASSWORD:-password123}
- KASM_USER=gophish_user
volumes:
- gophish_workspace_data:/home/kasm-user/data
- ./setup-gophish.sh:/dockerstartup/setup-gophish.sh
networks:
- kasm_network
- hack_network
# Standalone Evilginx2 service
evilginx2:
container_name: evilginx2
build:
context: ./evilginx2
dockerfile: Dockerfile
restart: unless-stopped
cap_add:
- NET_ADMIN
- NET_RAW
ports:
- "8880:80"
- "8444:443"
- "5353:53/udp"
volumes:
- evilginx2_data:/root/.evilginx
networks:
- hack_network
environment:
- CONFIG_PATH=/root/.evilginx
dns:
- 8.8.8.8
- 8.8.4.4
# Standalone Gophish service
gophish:
container_name: gophish
build:
context: ./gophish
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "3334:3333"
- "8081:8080"
volumes:
- gophish_data:/opt/gophish/data
- ./integration-config.json:/opt/gophish/integration-config.json:ro
networks:
- hack_network
depends_on:
- evilginx2
# Axiom (as a service)
axiom:
container_name: axiom
image: ubuntu:20.04
platform: linux/amd64
restart: unless-stopped
command: >
bash -c "apt update && apt install -y git curl sudo golang wget zip unzip lsb-release &&
git clone https://github.com/pry0cc/axiom ~/.axiom/ && cd &&
chmod +x ~/.axiom/interact/axiom-configure && ~/.axiom/interact/axiom-configure --docker &&
tail -f /dev/null"
volumes:
- axiom_data:/root/.axiom
networks:
- hack_network
networks:
kasm_default_network:
driver: bridge
ipam:
config:
- subnet: 10.10.0.0/24
kasm_network:
driver: bridge
portainer_network:
driver: bridge
hack_network:
driver: bridge
volumes:
kasm_db_1.15.0:
portainer_data:
evilginx2_workspace_data:
gophish_workspace_data:
evilginx2_data:
gophish_data:
axiom_data: