#!/bin/sh

echo "ETCD服务开始启动..."
# 检查 docker-compose 命令是否存在
if command -v docker-compose &> /dev/null
then
    # 在这里执行你的 docker-compose 命令
    docker-compose -f ./container_output/caxa_plm_single_host/compose_etcd.yaml create
    docker-compose -f ./container_output/caxa_plm_single_host/compose_etcd.yaml start
else
    docker compose -f ./container_output/caxa_plm_single_host/compose_etcd.yaml create
    docker compose -f ./container_output/caxa_plm_single_host/compose_etcd.yaml start
fi
echo "ETCD服务启动完成"

