Don't run this in production! This container is in an early stage of development!
docker run -i -t \
-p 80:80 \
--network="nginx-proxy" \
-e SQL_USER=root \
-e SQL_PW=my-root-password \
-e SQL_USR_PW=my-vmail-database-pw \
-e SQL_HOST= mydb \
-e ADMIN_MAIL=postmaster@example.com \
-e DOMAIN=example.com \
-e FQDN=mail.example.com \
-e SMTP_SERVER=smtp.example.com \
-e SETUP_PW="SETUP_PW" \
number13/postfixadmin
visit: example.com/setup.php and create an Admin Account. --> You're done.
The SQL User which has access to the MySQL for the database: postfix
The SQL User Password
The SQL Host - e.g. if youre using a network bridge the name of your SQL-Container
An administrator email for postfixadmin - not necessarily needed
the Domain under which your postboxed: postmaster@domain.tld / hostmaster@domain.tld etc. reside
Your FQDN for sending E-Mails from this Server
The SMTP Server to use for sending mails
The Postfixadmin Setup Pw - you can generate Admin Users with this Password @ domain.tld/setup.php