diff --git a/compose.yaml b/compose.yaml index 8f33ae1..96e0bab 100644 --- a/compose.yaml +++ b/compose.yaml @@ -816,3 +816,4 @@ volumes: router-images: portainer-data: name: portainer_data + external: true diff --git a/install.sh b/install.sh index b1e8269..3dda732 100755 --- a/install.sh +++ b/install.sh @@ -490,6 +490,7 @@ build_and_start() { docker compose --env-file "$SECRETS_DIR/stack.env" --profile inference create \ llama-fast llama-medium llama-large llama-ultra llama-uncensored docker compose --env-file "$SECRETS_DIR/stack.env" --profile image create image-worker + docker volume inspect portainer_data >/dev/null 2>&1 || docker volume create portainer_data >/dev/null docker compose --env-file "$SECRETS_DIR/stack.env" stop llama-dashboard portainer docker compose --env-file "$SECRETS_DIR/stack.env" up -d --build \ wireguard-gateway xtts piper tts-gateway profile-controller router llama-dashboard portainer backup diff --git a/manage.sh b/manage.sh index 265773e..1a368aa 100755 --- a/manage.sh +++ b/manage.sh @@ -44,6 +44,9 @@ case "$command" in deploy) [[ $# -gt 0 ]] || { usage >&2; exit 2; } run python3 "$ROOT_DIR/platform/scripts/sync-profile-matrix.py" --check + if ! docker volume inspect portainer_data >/dev/null 2>&1; then + run docker volume create portainer_data + fi if [[ $1 == core ]]; then shift [[ $# -eq 0 ]] || { echo "core akzeptiert keine weiteren Services" >&2; exit 2; }