11 lines
518 B
Bash
Executable File
11 lines
518 B
Bash
Executable File
#!/usr/bin/env bash
|
||
set -euo pipefail
|
||
cd "$(dirname "$0")/.."
|
||
compose_cmd="docker compose"
|
||
if ! $compose_cmd version >/dev/null 2>&1; then
|
||
if command -v docker-compose >/dev/null 2>&1; then compose_cmd="docker-compose"; else
|
||
echo "需要 Docker Compose,请安装后重试" >&2; exit 1; fi
|
||
fi
|
||
$compose_cmd -p logging-mvp up -d --remove-orphans
|
||
echo "[OK] 服务已启动:ES http://localhost:9200 Kibana http://localhost:5601 Fluent-Bit host01 http://localhost:2020 Fluent-Bit host02 http://localhost:2021"
|