17 lines
375 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:9007:8007 -v /srv/openmapkit/settings.js:/srv/openmapkit/settings.js -v /srv/openmapkit/data:/srv/openmapkit/data openmapkit
}
stop() {
/usr/bin/docker kill openmapkit
}