Integrate Mifos X with postfix

This commit is contained in:
Disassembler 2018-02-03 12:59:09 +01:00
parent 00b2f7e9c5
commit 3955c749cd
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499
3 changed files with 9 additions and 2 deletions

View File

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

View File

@ -1 +1,6 @@
UPDATE m_appuser SET username = "${MIFOSX_ADMIN_USER}", password = "${MIFOSX_ADMIN_HASH}", email = "${MIFOSX_ADMIN_EMAIL}" WHERE id = 1; UPDATE `m_appuser` SET `username` = "${MIFOSX_ADMIN_USER}", `password` = "${MIFOSX_ADMIN_HASH}", `email` = "${MIFOSX_ADMIN_EMAIL}" WHERE `id` = 1;
UPDATE `c_external_service_properties` SET `value` = "mifosx@spotter.ngo" WHERE `external_service_id` = 2 and `name` LIKE "username";
UPDATE `c_external_service_properties` SET `value` = "" WHERE `external_service_id` = 2 and `name` LIKE "password";
UPDATE `c_external_service_properties` SET `value` = "postfix" WHERE `external_service_id` = 2 and `name` LIKE "host";
UPDATE `c_external_service_properties` SET `value` = "false" WHERE `external_service_id` = 2 and `name` LIKE "useTLS";

View File

@ -4,7 +4,7 @@ description="Mifos X docker container"
depend() { depend() {
need docker net need docker net
use dns logger netmount use dns logger netmount postfix
after mariadb after mariadb
} }
@ -13,6 +13,7 @@ start() {
--name mifosx \ --name mifosx \
-h mifosx \ -h mifosx \
--link mariadb \ --link mariadb \
--link postfix \
-p 127.0.0.1:8012:8012 \ -p 127.0.0.1:8012:8012 \
-v /srv/mifosx/conf/context.xml:/srv/tomcat/webapps/fineract-provider/META-INF/context.xml \ -v /srv/mifosx/conf/context.xml:/srv/tomcat/webapps/fineract-provider/META-INF/context.xml \
mifosx mifosx