Integrate SeedDMS with postfix

This commit is contained in:
Disassembler 2018-02-02 17:10:32 +01:00
parent 09dfcd6751
commit 5f1ce1a230
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
3 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,7 @@
SOURCE_DIR=$(realpath $(dirname "${0}"))/seeddms SOURCE_DIR=$(realpath $(dirname "${0}"))/seeddms
# 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="SeedDMS 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 seeddms \ --name seeddms \
-h seeddms \ -h seeddms \
--link postfix \
--link postgres \ --link postgres \
-p 127.0.0.1:8010:8010 \ -p 127.0.0.1:8010:8010 \
-v /srv/seeddms/data:/srv/seeddms/data \ -v /srv/seeddms/data:/srv/seeddms/data \

View File

@ -14,7 +14,7 @@
</connectors> </connectors>
</authentication> </authentication>
<database dbDriver="pgsql" dbHostname="postgres" dbDatabase="seeddms" dbUser="seeddms" dbPass="${SEEDDMS_PWD}" doNotCheckVersion="false"/> <database dbDriver="pgsql" dbHostname="postgres" dbDatabase="seeddms" dbUser="seeddms" dbPass="${SEEDDMS_PWD}" doNotCheckVersion="false"/>
<smtp smtpServer="localhost" smtpPort="25" smtpSendFrom="seeddms@localhost" smtpUser="" smtpPassword=""/> <smtp smtpServer="postfix" smtpPort="25" smtpSendFrom="seeddms@spotter.ngo" smtpUser="" smtpPassword=""/>
</system> </system>
<advanced> <advanced>
<display siteDefaultPage="" rootFolderID="1" titleDisplayHack="true" showMissingTranslations="false"/> <display siteDefaultPage="" rootFolderID="1" titleDisplayHack="true" showMissingTranslations="false"/>