Spotter-VM/redis/lib/systemd/system/redis.service

12 lines
302 B
SYSTEMD
Raw Normal View History

[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