initial COM2 system snapshot

This commit is contained in:
gitea
2026-03-06 15:22:40 +00:00
commit 9c0fa49baf
4377 changed files with 273033 additions and 0 deletions

View 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 ==="