From 94b6254f420fc9a6973a329ee298d5e759d5b849 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Wed, 11 Jun 2025 15:46:30 +0100 Subject: [PATCH] =?UTF-8?q?minio-bootstrap=20as=20sneaky=20replicas:=200?= =?UTF-8?q?=20service=20=F0=9F=A4=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + TODO.md | 8 ++++---- compose.yml | 29 +++++++++++++++++------------ 3 files changed, 22 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index cd5d228..f620afc 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ * `abra app config ` * `abra app deploy ` * `abra app cmd backend migrate` +* `abra app restart minio-bootstrap` (Note: this will appear to fail, but probably worked! Check `abra app logs minio-bootstrap`) For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech). diff --git a/TODO.md b/TODO.md index 78921e4..2d6e628 100644 --- a/TODO.md +++ b/TODO.md @@ -16,12 +16,12 @@ - [ ] OIDC secret - [ ] SMTP password - [ ] Minio password / `AWS_S3_SECRET_ACCESS_KEY` -- [ ] Initial setup documentation -- [ ] Move Minio bootstrap & DB migrate to `abra.sh` commands +- [-] Initial setup documentation +- [x] Move Minio bootstrap & DB migrate to `abra.sh` commands - [ ] Expose options in `.env.sample`: - [ ] Branding - - [ ] Logging -- [ ] SMTP + - [x] Logging +- [x] SMTP - [ ] Increase image upload filesize ## Could diff --git a/compose.yml b/compose.yml index 0e221d7..71d244e 100644 --- a/compose.yml +++ b/compose.yml @@ -140,18 +140,23 @@ services: networks: - backend - # TODO: Move to abra.sh command - # minio-bootstrap: - # image: minio/mc - # environment: *minio-env - # networks: - # - backend - # entrypoint: > - # sh -c " - # /usr/bin/mc alias set docs http://minio:9000 $${MINIO_ROOT_USER} $${MINIO_ROOT_PASSWORD} && \ - # /usr/bin/mc mb --ignore-existing docs/docs-media-storage && \ - # /usr/bin/mc version enable docs/docs-media-storage && \ - # exit 0;" + minio-bootstrap: + # NOTE: Not started by default, only run with a manual `abra app restart` / `docker service scale` + image: minio/mc + environment: *minio-env + networks: + - backend + entrypoint: > + sh -c " + /usr/bin/mc alias set docs http://minio:9000 $${MINIO_ROOT_USER} $${MINIO_ROOT_PASSWORD} && \ + /usr/bin/mc mb --ignore-existing docs/docs-media-storage && \ + /usr/bin/mc version enable docs/docs-media-storage && \ + exit 0;" + deploy: + mode: replicated + replicas: 0 + restart_policy: + condition: none minio: image: minio/minio