Make a proper conf mount for OpenMapKit
This commit is contained in:
parent
2e8e6a9e69
commit
e3e4a91dcd
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user