add docker_compose_bin
This commit is contained in:
parent
b4f4aea3df
commit
c610673f68
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user