simplify Athena runtime and centralize MCP management

This commit is contained in:
Mikei386
2026-08-26 09:57:38 +02:00
parent 104c9904a5
commit ab671a6396
31 changed files with 918 additions and 419 deletions
+2 -11
View File
@@ -23,8 +23,7 @@ tar -xzf "$ARCHIVE" -C "$work"
[[ -d $work/volumes ]] || die "Backup enthält keine Docker-Volumes."
# Stop only users of the restored volumes. WireGuard, SSH and networking stay up.
for container in mike-ai-open-webui mike-ai-router mike-ai-profile-controller \
mike-ai-piper mike-ai-tools-tinysearch; do
for container in mike-ai-router mike-ai-profile-controller mike-ai-piper; do
if [[ $(docker inspect -f '{{.State.Running}}' "$container" 2>/dev/null || true) == true ]]; then
docker stop "$container" >/dev/null
fi
@@ -42,19 +41,11 @@ restore_volume() {
rsync -a --delete "$source/" "$mountpoint/"
}
restore_volume mike-ai_open-webui-data "$work/volumes/open-webui-data"
restore_volume mike-ai_piper-data "$work/volumes/piper-data"
restore_volume mike-ai_router-state "$work/volumes/router-state"
restore_volume mike-ai_router-images "$work/volumes/router-images"
restore_volume mike-ai-tools_tinysearch-models "$work/volumes/tinysearch-models"
cd "$ROOT_DIR"
docker compose --env-file /etc/mike-ai/stack.env \
--profile homeassistant --profile arr --profile navidrome --profile deemix --profile github \
up -d
python3 platform/mcp/sync-clients.py \
--registry config/mcp-registry.json \
--hermes /data/hermes/config.yaml \
--openwebui-db "$(docker volume inspect -f '{{.Mountpoint}}' mike-ai_open-webui-data)/webui.db"
./manage.sh deploy core
printf 'ATHENA_RESTORE_OK %s\n' "$ARCHIVE"