forked from zerofox-oss/phishpond
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
100 lines (94 loc) · 2.8 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
90
91
92
93
94
95
96
97
98
99
100
version: "3.5"
services:
webserver:
build:
context: ./docker/web
depends_on:
- mitmproxy
container_name: 'webserver'
hostname: 'phishpond.local'
restart: 'always'
environment:
- http_proxy=http://mitmproxy:8080
- HTTPS_PROXY=http://mitmproxy:8080
- XDEBUG_CONFIG="remote_host=localhost remote_port=9000 remote_enable=1"
links:
- mitmproxy
- db
volumes:
- ./www:/var/www/html
- ./configs/web/vhosts:/etc/apache2/sites-enabled/
- ./configs/php/php.ini:/usr/local/etc/php/php.ini
- ./configs/php/patch.php:/usr/local/bin/patch.php
- ./configs/php/unpatch.php:/usr/local/bin/unpatch.php
- ./logs:/var/log/phishpond/
- mitm-volume:/usr/local/share/ca-certificates/extra/
command: >
bash -c "cp /usr/local/share/ca-certificates/extra/mitmproxy-ca-cert.{pem,crt} &&
update-ca-certificates --verbose &&
chmod -R 777 /var/log/phishpond &&
apache2-foreground"
networks:
phishpond_network:
aliases:
- phishpond.local
mitmproxy:
build:
context: ./docker/mitmproxy
container_name: 'mitmproxy'
restart: 'always'
command: >
bash -c "mitmweb --web-host 0.0.0.0 --set confdir=/home/mitmproxy/.mitmproxy --set relax_http_form_validation --ignore-hosts '(mozilla\.com|mozilla\.net|detectportal\.firefox\.com)' &&
chmod -R 777 /home/mitmproxy/logs/"
ports:
- "8080:8081"
tty: true
volumes:
- mitm-volume:/home/mitmproxy/.mitmproxy/
- ./configs/mitmproxy/config.yaml:/home/mitmproxy/.mitmproxy/config.yaml
- ./logs:/home/mitmproxy/logs
networks:
- phishpond_network
browser:
build:
context: https://github.com/jlesage/docker-firefox.git
shm_size: '2gb'
ports:
- "5800:5800"
container_name: 'firefox'
volumes:
- browser-volume:/config:rw
- mitm-volume:/config/certs/
depends_on:
- mitmproxy
links:
- mitmproxy
- webserver
networks:
- phishpond_network
environment:
- FF_PREF_PROXY_TYPE=network.proxy.type=1
- FF_PREF_HTTP_PROXY=network.proxy.http=\"mitmproxy\"
- FF_PREF_HTTP_PROXY_PORT=network.proxy.http_port=8080
- FF_PREF_HTTPS_PROXY=network.proxy.ssl=\"mitmproxy\"
- FF_PREF_HTTPS_PROXY_PORT=network.proxy.ssl_port=8080
- FF_PREF_CAPTIVE_PORTAL=network.captive-portal-service.enabled=false
- DISPLAY_WIDTH=1280
- DISPLAY_HEIGHT=768
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
container_name: 'db'
environment:
MYSQL_ROOT_PASSWORD: rootpassword
MYSQL_DATABASE: phishpond_db
MYSQL_USER: phishpond
MYSQL_PASSWORD: password
volumes:
mitm-volume:
browser-volume:
db_data:
networks:
phishpond_network: