xoxys.droneci/templates/etc/systemd/system/drone.service.j2
Robert Kaussow 8e7afe4015
All checks were successful
continuous-integration/drone/push Build is passing
fix docker-compose path
2019-11-24 18:10:07 +01:00

20 lines
470 B
Django/Jinja

#jinja2:lstrip_blocks: True
{{ ansible_managed | comment }}
[Unit]
Description=Drone CI compose service
Requires=docker.service
After=docker.service
[Service]
Restart={{ droneci_restart_policy }}
WorkingDirectory={{ droneci_service_directory }}
ExecStartPre=/usr/local/bin/docker-compose down
ExecStartPre=/usr/local/bin/docker-compose rm -f
ExecStart=/usr/local/bin/docker-compose up
ExecStop=/usr/local/bin/docker-compose down
[Install]
WantedBy=multi-user.target