Spotter-VM/redis/setup/etc/init.d/redis

21 lines
289 B
Plaintext
Executable File

#!/sbin/openrc-run
description="Redis docker container"
depend() {
need docker
}
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
}