#!/sbin/openrc-run

description="Pan.do/ra docker container"

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

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

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