mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
db migration
testing live in another VM environment for self hosting Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
+6
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user