add docker_compose_bin

This commit is contained in:
Ludovic Cartier
2023-07-19 12:07:15 +02:00
parent b4f4aea3df
commit c610673f68
2 changed files with 3 additions and 2 deletions

View File

@ -7,8 +7,8 @@ After=docker.service
Type=oneshot
RemainAfterExit=true
WorkingDirectory=/opt/docker-compose/{{ exporter }}
ExecStart=/usr/bin/docker-compose up -d
ExecStop=/usr/bin/docker-compose down
ExecStart=/usr/bin/{{ docker_compose_bin }} up -d
ExecStop=/usr/bin/{{ docker_compose_bin }} down
[Install]
WantedBy=multi-user.target