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

@ -1,5 +1,6 @@
--- ---
docker_compose_directory: "/opt/docker-compose" docker_compose_directory: "/opt/docker-compose"
docker_compose_bin: "docker compose"
prometheus_docker_network: prometheus prometheus_docker_network: prometheus

View File

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