❗️ This is a fork of pca-gophish-composition ❗️
Creates a Docker composition containing instances of:
To start the composition use the command: sudo docker-compose up --build
Connect to the gophish
admin web interface at:
https://localhost:3333.
The default credentials are admin
, gophish
.
Once the composition is running, gophish
will need to be
configured to talk to mailhog
and postfix
. Create new
sending profiles for the two servers as listed below:
Name | Host:Port |
---|---|
MailHog | mailhog:1025 |
Postfix | postfix:587 |
The mailhog
email testing tool can be accessed at http://localhost:8025
This composition exposes the following ports to the localhost:
- 2525:
postfix SMTP
- 587:
postfix submission
- 3333:
gophish admin server
- 3380:
gophish phish server
- 8025:
mailhog web interface
- postfix
PRIMARY_DOMAIN
: the domain of the mail serverRELAY_IP
: (optional) an IP address that is allowed to relay mail without authentication
- gophish
config.json
: gophish configuration fileadmin_fullchain.pem
: public key for admin portadmin_privkey.pem
: private key for admin portphish_fullchain.pem
: public key for phishing portphish_privkey.pem
: private key for phishing port
- postfix
fullchain.pem
: public keyprivkey.pem
: private keyusers.txt
: account credentials
None.