#!/sbin/openrc-run

description="OpenMapKit docker container"

depend() {
	need docker net
	use dns logger netmount
}

start() {
	/usr/bin/docker run -d --rm \
	--name omk \
	-h omk \
	-v /srv/omk/conf/settings.js:/srv/omk/settings.js \
	-v /srv/omk/data:/srv/omk/data \
	omk
}

start_post() {
	/usr/local/bin/spotter-appmgr update-proxy omk
}

stop() {
	/usr/bin/docker stop omk
}
