#!/sbin/openrc-run

description="RabbitMQ docker container"

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

start() {
	/usr/bin/docker run -d --rm \
	--name rabbitmq \
	-h rabbitmq \
	-v /srv/rabbitmq/data:/var/lib/rabbitmq/mnesia \
	rabbitmq
}

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