feat: added Unit file for drone
This commit is contained in:
parent
9ae38b5851
commit
2c4c23362b
|
@ -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
|
Loading…
Reference in New Issue