Integrate KanBoard with postfix

This commit is contained in:
Disassembler 2018-02-01 21:04:01 +01:00
parent 6015df24b3
commit 09dfcd6751
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
3 changed files with 5 additions and 3 deletions

View File

@ -3,6 +3,7 @@
SOURCE_DIR=$(realpath $(dirname "${0}"))/kanboard SOURCE_DIR=$(realpath $(dirname "${0}"))/kanboard
# Check prerequisites # Check prerequisites
docker image ls | grep -q postfix || $(realpath $(dirname "${0}"))/postfix.sh
docker image ls | grep -q postgres || $(realpath $(dirname "${0}"))/postgres.sh docker image ls | grep -q postgres || $(realpath $(dirname "${0}"))/postgres.sh
# Build Docker container # Build Docker container

View File

@ -4,7 +4,7 @@ description="KanBoard docker container"
depend() { depend() {
need docker net need docker net
use dns logger netmount use dns logger netmount postfix
after postgres after postgres
} }
@ -12,6 +12,7 @@ start() {
/usr/bin/docker run -d --rm \ /usr/bin/docker run -d --rm \
--name kanboard \ --name kanboard \
-h kanboard \ -h kanboard \
--link postfix \
--link postgres \ --link postgres \
-p 127.0.0.1:8009:8009 \ -p 127.0.0.1:8009:8009 \
-v /srv/kanboard/data:/srv/kanboard/data/files \ -v /srv/kanboard/data:/srv/kanboard/data/files \

View File

@ -41,10 +41,10 @@ define('MAIL_CONFIGURATION', true);
define('MAIL_FROM', 'kanboard@spotter.ngo'); define('MAIL_FROM', 'kanboard@spotter.ngo');
// Mail transport available: "smtp", "sendmail", "mail" (PHP mail function), "postmark", "mailgun", "sendgrid" // Mail transport available: "smtp", "sendmail", "mail" (PHP mail function), "postmark", "mailgun", "sendgrid"
define('MAIL_TRANSPORT', 'sendmail'); define('MAIL_TRANSPORT', 'smtp');
// SMTP configuration to use when the "smtp" transport is chosen // SMTP configuration to use when the "smtp" transport is chosen
define('MAIL_SMTP_HOSTNAME', ''); define('MAIL_SMTP_HOSTNAME', 'postfix');
define('MAIL_SMTP_PORT', 25); define('MAIL_SMTP_PORT', 25);
define('MAIL_SMTP_USERNAME', ''); define('MAIL_SMTP_USERNAME', '');
define('MAIL_SMTP_PASSWORD', ''); define('MAIL_SMTP_PASSWORD', '');