#!/sbin/openrc-run

description="Redis docker container"

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

start() {
	/usr/bin/docker run -d --rm \
	--name redis \
	-h redis \
	-v /srv/redis/conf/redis.conf:/etc/redis.conf \
	-v /srv/redis/data:/var/lib/redis \
	redis
}

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