prometheus/templates/systemd/docker-compose.service.j2
2023-07-19 12:07:15 +02:00

15 lines
326 B
Django/Jinja

[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service
[Service]
Type=oneshot
RemainAfterExit=true
WorkingDirectory=/opt/docker-compose/{{ exporter }}
ExecStart=/usr/bin/{{ docker_compose_bin }} up -d
ExecStop=/usr/bin/{{ docker_compose_bin }} down
[Install]
WantedBy=multi-user.target