OCF_HEARTBEAT_DOCKER(7) | OCF resource agents | OCF_HEARTBEAT_DOCKER(7) |
ocf_heartbeat_docker-compose - This script manages docker services using docker-compose.
docker-compose [start | stop | monitor | meta-data | validate-all]
Manages docker services using docker-compose as an OCF resource in an High Availability setup. It relies on a well-tested docker compose YAML file which distributed on an identical location on all cluster nodes.
Caveat: 1. A YAML file (docker-compose.yml) and an optional Dockerfile must be provided in a working directory. 2. It is suggested to test run the docker-compose and verify on all cluster nodes before enabling this agent.
binpath
(optional, string, default "/usr/bin/docker-compose")
dirpath
(required, string, no default)
ymlfile
(optional, string, default "docker-compose.yml")
This resource agent supports the following actions (operations):
start
stop
monitor
validate-all
meta-data
The following is an example configuration for a docker-compose resource using the crm(8) shell:
primitive p_docker-compose ocf:heartbeat:docker-compose \
params \
dirpath=string \
op monitor depth="0" timeout="10s" interval="60s"
The following is an example configuration for a docker-compose resource using pcs(8)
pcs resource create p_docker-compose ocf:heartbeat:docker-compose \
dirpath=string \
op monitor OCF_CHECK_LEVEL="0" timeout="10s" interval="60s"
http://clusterlabs.org/
ClusterLabs contributors (see the resource agent source for information about individual authors)
12/14/2020 | resource-agents UNKNOWN |