12 lines
302 B
SYSTEMD
12 lines
302 B
SYSTEMD
|
[Unit]
|
||
|
Description=Redis Docker container
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
ExecStart=/usr/bin/docker run --rm --tmpfs /tmp --name redis -v /srv/redis/redis.conf:/etc/redis.conf -v /srv/redis/data:/var/lib/redis redis
|
||
|
ExecStop=/usr/bin/docker stop redis
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|