2017-12-13 13:43:22 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Redis Docker container
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
2017-12-13 17:17:46 +01:00
|
|
|
ExecStart=/usr/bin/docker run --rm --name redis -v /srv/redis/redis.conf:/etc/redis.conf -v /srv/redis/data:/var/lib/redis redis
|
2017-12-13 13:43:22 +01:00
|
|
|
ExecStop=/usr/bin/docker stop redis
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|