-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.yml
78 lines (74 loc) · 1.52 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
---
version: "3"
services:
gophish-proxy:
image: caddy:latest
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add:
- CAP_NET_BIND_SERVICE
- CAP_NET_RAW
restart: unless-stopped
networks:
- gophish
volumes:
- ./caddy:/etc/caddy
ports:
- "0.0.0.0:80:80"
- "0.0.0.0:443:443"
- "0.0.0.0:3443:3443"
mysql:
image: mysql:latest
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add:
- CAP_DAC_OVERRIDE
- CAP_SETGID
- CAP_SETUID
restart: always
networks:
- db
environment:
MYSQL_RANDOM_ROOT_PASSWORD: true
MYSQL_ONETIME_PASSWORD: true
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
expose:
- 3306
volumes:
- ./mysql/gophish.cnf:/etc/mysql/conf.d/gophish.cnf
gophish:
build: .
cap_drop:
- ALL
cap_add:
- CAP_DAC_OVERRIDE
- CAP_NET_RAW
- CAP_NET_BIND_SERVICE
security_opt:
- no-new-privileges:true
networks:
- db
- gophish
environment:
ADMIN_LISTEN_URL: 0.0.0.0:3333
ADMIN_USE_TLS: false
DB_NAME: mysql
DB_FILE_PATH: ${MYSQL_USER}:${MYSQL_PASSWORD}@(mysql:3306)/${MYSQL_DATABASE}?charset=utf8&parseTime=True&loc=UTC
restart: unless-stopped
expose:
- 80
- 3333
ports:
- "127.0.0.1:3333:3333"
depends_on:
- mysql
- gophish-proxy
networks:
db:
gophish: