Spotter-VM/openmapkit/etc/init.d/openmapkit

23 lines
398 B
Plaintext
Executable File

#!/sbin/openrc-run
description="OpenMapKit docker container"
depend() {
need docker net
use dns logger netmount
}
start() {
/usr/bin/docker run -d --rm \
--name openmapkit \
-h openmapkit \
-p 127.0.0.1:8007:8007 \
-v /srv/openmapkit/conf/settings.js:/srv/openmapkit/settings.js \
-v /srv/openmapkit/data:/srv/openmapkit/data \
openmapkit
}
stop() {
/usr/bin/docker stop openmapkit
}