#!/sbin/openrc-run

description="GNU Health docker container"

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

start() {
	/usr/bin/docker run -d --rm \
	--name gnuhealth \
	-h gnuhealth \
	--link postfix \
	--link postgres \
	-p 127.0.0.1:8008:8008 \
	-v /srv/gnuhealth/conf:/srv/gnuhealth/gnuhealth/tryton/server/config \
	gnuhealth
}

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