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

35
com-stack/com2_restore.sh Executable file
View File

@@ -0,0 +1,35 @@
#!/usr/bin/env bash
set -euo pipefail
STACK_DIR="/opt/hx-ki/com-stack"
COMPOSE="$STACK_DIR/docker-compose.yml"
NET="hxki-internal"
echo "=== HXKI · COM2 RESTORE (Autorität: $COMPOSE) ==="
[ -f "$COMPOSE" ] || { echo "FEHLT: $COMPOSE"; exit 1; }
# Host-Caddy killen, damit Docker-Caddy 80/443 bekommt
if systemctl is-active --quiet caddy 2>/dev/null; then
echo "[1] Stoppe host-caddy (systemd)"
systemctl stop caddy
fi
# Netzwerk sicherstellen
if ! docker network ls --format '{{.Name}}' | grep -q "^$NET$"; then
echo "[2] Erzeuge Netzwerk $NET"
docker network create "$NET"
fi
echo "[3] COM2 Orchester: down/up über Compose"
cd "$STACK_DIR"
docker compose down
docker compose up -d --remove-orphans
echo "[4] Container"
docker ps --format 'NAME={{.Names}} STATUS={{.Status}} PORTS={{.Ports}}'
echo "[5] hxki-internal Mitglieder"
docker network inspect "$NET" --format '{{range $id,$c := .Containers}}{{println $c.Name}}{{end}}' | sort
echo "=== ENDE · COM2 RESTORE ==="