Make a proper conf mount for OpenMapKit

This commit is contained in:
Disassembler 2018-01-27 14:27:28 +01:00
parent 2e8e6a9e69
commit e3e4a91dcd
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
3 changed files with 3 additions and 3 deletions

View File

@ -8,9 +8,9 @@ docker build -t openmapkit ${SOURCE_DIR}
# Configure OpenMapKit
export OMK_ADMIN_USER="admin"
export OMK_ADMIN_PWD=$(head -c 12 /dev/urandom | base64)
mkdir -p /srv/openmapkit/data/deployments /srv/openmapkit/data/submissions
envsubst <${SOURCE_DIR}/srv/openmapkit/settings.js >/srv/openmapkit/settings.js
mkdir -p /srv/openmapkit/conf /srv/openmapkit/data/deployments /srv/openmapkit/data/submissions
chown -R 8007:8007 /srv/openmapkit/data
envsubst <${SOURCE_DIR}/srv/openmapkit/conf/settings.js >/srv/openmapkit/conf/settings.js
# Configure OpenMapKit service
cp ${SOURCE_DIR}/etc/init.d/openmapkit /etc/init.d/openmapkit

View File

@ -12,7 +12,7 @@ start() {
--name openmapkit \
-h openmapkit \
-p 127.0.0.1:9007:8007 \
-v /srv/openmapkit/settings.js:/srv/openmapkit/settings.js \
-v /srv/openmapkit/conf/settings.js:/srv/openmapkit/settings.js \
-v /srv/openmapkit/data:/srv/openmapkit/data \
openmapkit
}