Integrate Sahana with postfix

This commit is contained in:
Disassembler 2018-02-03 13:42:32 +01:00
parent cf42cf349c
commit fde06390ea
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
6 changed files with 8 additions and 4 deletions

View File

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

View File

@ -4,7 +4,7 @@ description="Sahana Eden docker container"
depend() {
need docker net
use dns logger netmount
use dns logger netmount postfix
after postgres
}
@ -12,6 +12,7 @@ start() {
/usr/bin/docker run -d --rm \
--name sahana \
-h sahana \
--link postfix \
--link postgres \
-p 127.0.0.1:8001:8001 \
-v /srv/sahana/conf:/srv/web2py/applications/eden/models \

View File

@ -92,7 +92,7 @@ settings.auth.hmac_key = "${SAHANA_HMAC}"
# Email settings
# Outbound server
settings.mail.server = "postfix:587"
settings.mail.server = "postfix:25"
#settings.mail.tls = True
# Useful for Windows Laptops:
# https://www.google.com/settings/security/lesssecureapps

View File

@ -3,6 +3,7 @@
SOURCE_DIR=$(realpath $(dirname "${0}"))/sambro
# 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 sahana || docker build -t sahana $(realpath $(dirname "${0}"))/sahana

View File

@ -4,7 +4,7 @@ description="SAMBRO docker container"
depend() {
need docker net
use dns logger netmount
use dns logger netmount postfix
after postgres
}
@ -12,6 +12,7 @@ start() {
/usr/bin/docker run -d --rm \
--name sambro \
-h sambro \
--link postfix \
--link postgres \
-p 127.0.0.1:8099:8001 \
-v /srv/sambro/conf:/srv/web2py/applications/eden/models \

View File

@ -92,7 +92,7 @@ settings.auth.hmac_key = "${SAMBRO_HMAC}"
# Email settings
# Outbound server
settings.mail.server = "postfix:587"
settings.mail.server = "postfix:25"
#settings.mail.tls = True
# Useful for Windows Laptops:
# https://www.google.com/settings/security/lesssecureapps