fix: reuse existing ybs-kafka/ybs-zookeeper, move Consul to 9517, remove ZK/Kafka from compose

Former-commit-id: c7aff428fd4b259c9795da76ce4a53be29f9fe4d
This commit is contained in:
反编译工作区
2026-05-01 22:57:47 +08:00
parent ef9f38587c
commit 31ec44e21a
3 changed files with 4 additions and 31 deletions
+2 -3
View File
@@ -51,7 +51,7 @@ log_ok "MySQL: $MYSQL_HOST:$MYSQL_PORT OK"
# 端口冲突
CONFLICT_PORTS=""
for port in 8500 6380 9092 2181 8090 18080 18081 16106 17011 3721; do
for port in 9517 6380 8090 18080 18081 16106 17011 3721; do
if ss -tlnp 2>/dev/null | grep -q ":$port "; then
CONFLICT_PORTS="$CONFLICT_PORTS $port"
fi
@@ -78,8 +78,7 @@ cd "$SCRIPT_DIR"
# Stop and remove any existing v2test containers and conflicting containers
log_info "Cleaning up existing containers..."
docker rm -f v2test-consul v2test-redis v2test-kafka v2test-zookeeper v2test-nginx \
cw-frontend-local-nginx v2-test-redis 2>/dev/null || true
docker rm -f v2test-consul v2test-redis v2test-nginx cw-frontend-local-nginx v2-test-redis 2>/dev/null || true
docker compose -f docker-compose.infra.yml down --remove-orphans 2>/dev/null || true
docker compose -f docker-compose.infra.yml up -d