17 lines
298 B
Plaintext
Executable File
17 lines
298 B
Plaintext
Executable File
#!/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/redis.conf:/etc/redis.conf -v /srv/redis/data:/var/lib/redis redis
|
|
}
|
|
|
|
stop() {
|
|
/usr/bin/docker stop redis
|
|
}
|