prometheus/templates/systemd/docker-compose.service.j2

15 lines
326 B
Plaintext
Raw Permalink Normal View History

2023-01-27 16:51:27 +01:00
[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service
[Service]
Type=oneshot
RemainAfterExit=true
WorkingDirectory=/opt/docker-compose/{{ exporter }}
2023-07-19 12:07:15 +02:00
ExecStart=/usr/bin/{{ docker_compose_bin }} up -d
ExecStop=/usr/bin/{{ docker_compose_bin }} down
2023-01-27 16:51:27 +01:00
[Install]
WantedBy=multi-user.target