From c4e131004f9481f67017cbd494a4519f19704b66 Mon Sep 17 00:00:00 2001 From: notplants <@notplants> Date: Mon, 28 Sep 2026 19:22:14 +0000 Subject: [PATCH] Use other minio as the quay.io is not available --- compose.yml | 9 +++++---- minio-initialize.sh | 5 +++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/compose.yml b/compose.yml index 8539a24..46fc16c 100644 --- a/compose.yml +++ b/compose.yml @@ -253,7 +253,8 @@ services: - backend minio: - image: quay.io/minio/minio:RELEASE.2025-09-07T16-13-09Z + image: bitnamilegacy/minio:2025.7.23-debian-12-r5 + user: root environment: *minio-env healthcheck: test: ["CMD", "mc", "ready", "local"] @@ -262,11 +263,11 @@ services: retries: 300 networks: - backend - command: minio server /data + command: /opt/bitnami/scripts/minio/run.sh entrypoint: > - sh -c "/minio-initialize.sh & exec /usr/bin/docker-entrypoint.sh \"$$@\"" -- + sh -c "/minio-initialize.sh & exec /opt/bitnami/scripts/minio/entrypoint.sh \"$$@\"" -- volumes: - - minio:/data + - minio:/bitnami/minio/data deploy: labels: backupbot.backup: "${ENABLE_BACKUPS:-true}" diff --git a/minio-initialize.sh b/minio-initialize.sh index 3511083..f0f552e 100644 --- a/minio-initialize.sh +++ b/minio-initialize.sh @@ -1,6 +1,11 @@ #!/bin/sh set -e +# Use an isolated mc config dir: the bundled Bitnami image runs its own +# internal mc client (as the "minio" user) against the default /.mc path, +# which collides with this script running as root against the same path. +export MC_CONFIG_DIR=/tmp/mc-docs-init + # Wait for minio to be ready (up to 60 seconds) i=0 while ! mc ready local 2>/dev/null; do