Integrate Sahana with postfix
This commit is contained in:
parent
cf42cf349c
commit
fde06390ea
@ -3,6 +3,7 @@
|
|||||||
SOURCE_DIR=$(realpath $(dirname "${0}"))/sahana
|
SOURCE_DIR=$(realpath $(dirname "${0}"))/sahana
|
||||||
|
|
||||||
# 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
|
||||||
|
@ -4,7 +4,7 @@ description="Sahana Eden 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 sahana \
|
--name sahana \
|
||||||
-h sahana \
|
-h sahana \
|
||||||
|
--link postfix \
|
||||||
--link postgres \
|
--link postgres \
|
||||||
-p 127.0.0.1:8001:8001 \
|
-p 127.0.0.1:8001:8001 \
|
||||||
-v /srv/sahana/conf:/srv/web2py/applications/eden/models \
|
-v /srv/sahana/conf:/srv/web2py/applications/eden/models \
|
||||||
|
@ -92,7 +92,7 @@ settings.auth.hmac_key = "${SAHANA_HMAC}"
|
|||||||
|
|
||||||
# Email settings
|
# Email settings
|
||||||
# Outbound server
|
# Outbound server
|
||||||
settings.mail.server = "postfix:587"
|
settings.mail.server = "postfix:25"
|
||||||
#settings.mail.tls = True
|
#settings.mail.tls = True
|
||||||
# Useful for Windows Laptops:
|
# Useful for Windows Laptops:
|
||||||
# https://www.google.com/settings/security/lesssecureapps
|
# https://www.google.com/settings/security/lesssecureapps
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
SOURCE_DIR=$(realpath $(dirname "${0}"))/sambro
|
SOURCE_DIR=$(realpath $(dirname "${0}"))/sambro
|
||||||
|
|
||||||
# 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
|
||||||
docker image ls | grep -q sahana || docker build -t sahana $(realpath $(dirname "${0}"))/sahana
|
docker image ls | grep -q sahana || docker build -t sahana $(realpath $(dirname "${0}"))/sahana
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ description="SAMBRO 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 sambro \
|
--name sambro \
|
||||||
-h sambro \
|
-h sambro \
|
||||||
|
--link postfix \
|
||||||
--link postgres \
|
--link postgres \
|
||||||
-p 127.0.0.1:8099:8001 \
|
-p 127.0.0.1:8099:8001 \
|
||||||
-v /srv/sambro/conf:/srv/web2py/applications/eden/models \
|
-v /srv/sambro/conf:/srv/web2py/applications/eden/models \
|
||||||
|
@ -92,7 +92,7 @@ settings.auth.hmac_key = "${SAMBRO_HMAC}"
|
|||||||
|
|
||||||
# Email settings
|
# Email settings
|
||||||
# Outbound server
|
# Outbound server
|
||||||
settings.mail.server = "postfix:587"
|
settings.mail.server = "postfix:25"
|
||||||
#settings.mail.tls = True
|
#settings.mail.tls = True
|
||||||
# Useful for Windows Laptops:
|
# Useful for Windows Laptops:
|
||||||
# https://www.google.com/settings/security/lesssecureapps
|
# https://www.google.com/settings/security/lesssecureapps
|
||||||
|
Loading…
Reference in New Issue
Block a user