feat: added Unit file for drone

This commit is contained in:
surtur 2020-05-29 12:58:04 +02:00
parent 9ae38b5851
commit 2c4c23362b
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

12
drone.service Normal file

@ -0,0 +1,12 @@
[Unit]
Description=Drone server
After=docker.service nginx.service
OnFailure=systemd-email@%n.service
[Service]
Restart=always
ExecStart=/usr/bin/docker-compose -f /etc/drone/docker-compose.yml up
ExecStop=/usr/bin/docker-compose -f /etc/drone/docker-compose.yml stop
[Install]
WantedBy=multi-user.target