#!/sbin/openrc-run

description="SeedDMS docker container"

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

start() {
	/usr/bin/docker run -d --rm \
	--name seeddms \
	-h seeddms \
	--link postfix \
	--link postgres \
	-p 127.0.0.1:8010:8010 \
	-v /srv/seeddms/data:/srv/seeddms/data \
	-v /srv/seeddms/conf:/srv/seeddms/www/conf \
	seeddms
}

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