Adopt persistent Portainer volume explicitly
This commit is contained in:
@@ -816,3 +816,4 @@ volumes:
|
|||||||
router-images:
|
router-images:
|
||||||
portainer-data:
|
portainer-data:
|
||||||
name: portainer_data
|
name: portainer_data
|
||||||
|
external: true
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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; }
|
||||||
|
|||||||
Reference in New Issue
Block a user