2019-05-10 08:55:14 +00:00
|
|
|
#jinja2:lstrip_blocks: True
|
2019-08-28 08:20:31 +00:00
|
|
|
{{ ansible_managed | comment }}
|
2019-05-10 08:55:14 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Drone CI compose service
|
|
|
|
Requires=docker.service
|
|
|
|
After=docker.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Restart={{ droneci_restart_policy }}
|
|
|
|
WorkingDirectory={{ droneci_service_directory }}
|
|
|
|
|
|
|
|
ExecStartPre=/bin/docker-compose down
|
|
|
|
ExecStartPre=/bin/docker-compose rm -f
|
|
|
|
|
|
|
|
ExecStart=/usr/bin/docker-compose up
|
|
|
|
ExecStop=/usr/bin/docker-compose down
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|