initial COM2 system snapshot
This commit is contained in:
31
COM2_CLEAN_NAME_CONFLICTS_ONE_SHOT.sh
Executable file
31
COM2_CLEAN_NAME_CONFLICTS_ONE_SHOT.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
DIR="/opt/hx-ki/com2-stack"
|
||||
cd "$DIR"
|
||||
|
||||
echo "=== COM2 · CLEAN NAME CONFLICTS (container-only, no data loss) ==="
|
||||
echo "[1] Zeige laufende hxki-Container (harte Fakten)"
|
||||
docker ps --format 'NAME={{.Names}} STATUS={{.Status}}' | egrep '^(hxki-|hx-caddy)' || true
|
||||
echo
|
||||
|
||||
echo "[2] Versuche COM2 sauber runterzufahren (falls Projekt schon existiert)"
|
||||
docker compose down --remove-orphans || true
|
||||
echo
|
||||
|
||||
echo "[3] Entferne nur Konflikt-Container (NUR Container, keine Volumes/Dirs)"
|
||||
for n in hxki-mariadb hxki-postgres hxki-n8n hxki-mautic hxki-web hx-caddy hxki-grafana; do
|
||||
if docker ps -a --format '{{.Names}}' | grep -qx "$n"; then
|
||||
echo " - rm -f $n"
|
||||
docker rm -f "$n" >/dev/null || true
|
||||
fi
|
||||
done
|
||||
echo
|
||||
|
||||
echo "[4] COM2 hochfahren"
|
||||
docker compose up -d --remove-orphans
|
||||
echo
|
||||
|
||||
echo "[5] Status"
|
||||
docker ps --format 'NAME={{.Names}} STATUS={{.Status}} PORTS={{.Ports}}' | egrep 'hxki-|hx-caddy' || true
|
||||
echo "=== DONE ==="
|
||||
Reference in New Issue
Block a user