Integrate Ushahidi with postfix
This commit is contained in:
parent
5f1ce1a230
commit
0fdd906bc8
@ -4,6 +4,7 @@ SOURCE_DIR=$(realpath $(dirname "${0}"))/ushahidi
|
|||||||
|
|
||||||
# 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
|
||||||
|
|
||||||
# Build Docker container
|
# Build Docker container
|
||||||
docker build -t ushahidi ${SOURCE_DIR}
|
docker build -t ushahidi ${SOURCE_DIR}
|
||||||
|
@ -1 +1,5 @@
|
|||||||
UPDATE users SET email = '${USHAHIDI_ADMIN_USER}', password = '${USHAHIDI_ADMIN_HASH}', updated = created WHERE realname = 'admin';
|
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\"');
|
||||||
|
@ -4,7 +4,7 @@ description="Ushahidi 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 ushahidi \
|
--name ushahidi \
|
||||||
-h ushahidi \
|
-h ushahidi \
|
||||||
--link mariadb \
|
--link mariadb \
|
||||||
|
--link postfix \
|
||||||
-p 127.0.0.1:8014:8014 \
|
-p 127.0.0.1:8014:8014 \
|
||||||
-v /srv/ushahidi/conf/env:/srv/ushahidi/platform/.env \
|
-v /srv/ushahidi/conf/env:/srv/ushahidi/platform/.env \
|
||||||
-v /srv/ushahidi/data:/srv/ushahidi/platform/application/media/uploads \
|
-v /srv/ushahidi/data:/srv/ushahidi/platform/application/media/uploads \
|
||||||
|
Loading…
Reference in New Issue
Block a user