Make a proper conf mount for Ushahidi
This commit is contained in:
parent
2584e263fc
commit
045c47a12f
@ -13,11 +13,11 @@ export USHAHIDI_PWD=$(head -c 18 /dev/urandom | base64)
|
||||
envsubst <${SOURCE_DIR}/createdb.sql | docker exec -i mariadb mysql
|
||||
|
||||
# Configure Ushahidi
|
||||
mkdir /srv/ushahidi
|
||||
envsubst <${SOURCE_DIR}/srv/ushahidi/.env >/srv/ushahidi/.env
|
||||
mkdir -p /srv/ushahidi/conf
|
||||
envsubst <${SOURCE_DIR}/srv/ushahidi/conf/env >/srv/ushahidi/conf/env
|
||||
|
||||
# Populate database
|
||||
docker run --rm -h ushahidi --link mariadb -v /srv/ushahidi/.env:/srv/ushahidi/platform/.env ushahidi /srv/ushahidi/platform/bin/phinx migrate -c /srv/ushahidi/platform/application/phinx.php
|
||||
docker run --rm -h ushahidi --link mariadb -v /srv/ushahidi/conf/env:/srv/ushahidi/platform/.env ushahidi /srv/ushahidi/platform/bin/phinx migrate -c /srv/ushahidi/platform/application/phinx.php
|
||||
|
||||
# Create admin account
|
||||
export USHAHIDI_ADMIN_USER=admin@example.com
|
||||
|
@ -14,7 +14,7 @@ start() {
|
||||
-h ushahidi \
|
||||
--link mariadb \
|
||||
-p 127.0.0.1:9014:8014 \
|
||||
-v /srv/ushahidi/.env:/srv/ushahidi/platform/.env \
|
||||
-v /srv/ushahidi/conf/env:/srv/ushahidi/platform/.env \
|
||||
ushahidi
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user