Integrate Ushahidi with postfix

This commit is contained in:
Disassembler 2018-02-03 10:06:16 +01:00
parent 5f1ce1a230
commit 0fdd906bc8
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499
3 changed files with 7 additions and 1 deletions

View File

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

View File

@ -1 +1,5 @@
UPDATE users SET email = '${USHAHIDI_ADMIN_USER}', password = '${USHAHIDI_ADMIN_HASH}', updated = created WHERE realname = 'admin';
INSERT INTO `config` (`group_name`, `config_key`, `config_value`) VALUES
('data-provider','email','{\"incoming_type\":\"IMAP\",\"incoming_server\":\"localhost\",\"incoming_port\":143,\"incoming_security\":\"None\",\"incoming_username\":\"ushahidi@spotter.ngo\",\"incoming_password\":\"password\",\"outgoing_type\":\"SMTP\",\"outgoing_server\":\"postfix\",\"outgoing_port\":25,\"outgoing_security\":\"None\",\"outgoing_username\":\"ushahidi@spotter.ngo\",\"outgoing_password\":\"password\",\"from\":\"ushahidi@spotter.ngo\",\"from_name\":\"Ushahidi\"}'),
('data-provider','url','\"http:\\/\\/127.0.0.1\\/platform\\/api\\/v3\\/config\\/data-provider\"');

View File

@ -4,7 +4,7 @@ description="Ushahidi docker container"
depend() {
need docker net
use dns logger netmount
use dns logger netmount postfix
after mariadb
}
@ -13,6 +13,7 @@ start() {
--name ushahidi \
-h ushahidi \
--link mariadb \
--link postfix \
-p 127.0.0.1:8014:8014 \
-v /srv/ushahidi/conf/env:/srv/ushahidi/platform/.env \
-v /srv/ushahidi/data:/srv/ushahidi/platform/application/media/uploads \