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

22 lines
318 B
Plaintext
Raw Normal View History

2017-12-19 19:12:51 +01:00
#!/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 \
2018-01-27 14:31:11 +01:00
-v /srv/redis/conf/redis.conf:/etc/redis.conf \
-v /srv/redis/data:/var/lib/redis \
redis
2017-12-19 19:12:51 +01:00
}
stop() {
/usr/bin/docker stop redis
}