Adopt persistent Portainer volume explicitly

This commit is contained in:
Mikei386
2026-09-01 11:07:11 +02:00
parent 12392ccdd7
commit 5f793020b0
3 changed files with 5 additions and 0 deletions
+1
View File
@@ -816,3 +816,4 @@ volumes:
router-images: router-images:
portainer-data: portainer-data:
name: portainer_data name: portainer_data
external: true
+1
View File
@@ -490,6 +490,7 @@ build_and_start() {
docker compose --env-file "$SECRETS_DIR/stack.env" --profile inference create \ docker compose --env-file "$SECRETS_DIR/stack.env" --profile inference create \
llama-fast llama-medium llama-large llama-ultra llama-uncensored llama-fast llama-medium llama-large llama-ultra llama-uncensored
docker compose --env-file "$SECRETS_DIR/stack.env" --profile image create image-worker 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" stop llama-dashboard portainer
docker compose --env-file "$SECRETS_DIR/stack.env" up -d --build \ docker compose --env-file "$SECRETS_DIR/stack.env" up -d --build \
wireguard-gateway xtts piper tts-gateway profile-controller router llama-dashboard portainer backup wireguard-gateway xtts piper tts-gateway profile-controller router llama-dashboard portainer backup
+3
View File
@@ -44,6 +44,9 @@ case "$command" in
deploy) deploy)
[[ $# -gt 0 ]] || { usage >&2; exit 2; } [[ $# -gt 0 ]] || { usage >&2; exit 2; }
run python3 "$ROOT_DIR/platform/scripts/sync-profile-matrix.py" --check 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 if [[ $1 == core ]]; then
shift shift
[[ $# -eq 0 ]] || { echo "core akzeptiert keine weiteren Services" >&2; exit 2; } [[ $# -eq 0 ]] || { echo "core akzeptiert keine weiteren Services" >&2; exit 2; }