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_bin: "docker compose"
|
||||
|
||||
prometheus_docker_network: prometheus
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user