[Unit] Description=Redis Docker container After=network.target [Service] Type=simple ExecStart=/usr/bin/docker run --rm --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