db migration

testing live in another VM environment for self hosting

Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
2026-08-29 15:48:02 +08:00
parent 05f27e34d7
commit eec1cd22cb
6 changed files with 11 additions and 42 deletions
+6 -6
View File
@@ -82,21 +82,21 @@ services:
# to serve S3_PUBLIC_URL (e.g. https://cdn.yourdomain.com → http://garage:3900).
# GARAGE_RPC_SECRET must be set in .env (generate with: openssl rand -hex 32).
#
# garage-init.sh starts the daemon in the background, runs one-time cluster
# initialization (layout, bucket, key), then hands control back to the daemon.
# The dxflrs/garage image ships only the static `garage` binary — no shell,
# so it can't run garage-init.sh (and CMD-SHELL healthchecks can't run
# either, same reason). Cluster init (layout/bucket/key) is a one-time
# manual step after first `docker compose up` — see README/setup notes.
garage:
image: dxflrs/garage
entrypoint: ["/bin/sh", "/garage-init.sh"]
image: dxflrs/garage:v2.3.0
volumes:
- ./apps/api/config/garage.toml:/etc/garage.toml:ro
- ./apps/api/scripts/garage-init.sh:/garage-init.sh:ro
- garage_meta:/var/lib/garage/meta
- garage_data:/var/lib/garage/data
ports:
- "3900:3900"
env_file: apps/api/.env
healthcheck:
test: ["CMD-SHELL", "test -f /var/lib/garage/meta/.ready && garage status > /dev/null 2>&1"]
test: ["CMD", "/garage", "status"]
interval: 10s
timeout: 5s
retries: 10