feat: multi-hdd #35

Merged
fauno merged 1 commits from multi-hdd into main 2026-11-08 14:34:36 +00:00
2 changed files with 12 additions and 1 deletions
+7
View File
@@ -32,5 +32,12 @@ BLOCK_SIZE=1MiB # only increase if there is a fast network connection between no
#LOCAL_FOLDER_META=/path/on/docker/host
#LOCAL_FOLDER_DATA=/path/on/docker/host
# Pass an array of directories as a string or a directory other than the
# default. Mount different disks under LOCAL_FOLDER_DATA for Garage to
# have access to them.
#
# https://garagehq.deuxfleurs.fr/documentation/operations/multi-hdd/
#DATA_DIRS='[{path="/var/lib/garage/meta",capacity="1T"}]'
## Enable Full Data Backups (not just metadata)
# COMPOSE_FILE="$COMPOSE_FILE:compose.fullbackup.yml"
+5 -1
View File
@@ -1,5 +1,9 @@
metadata_dir = "/var/lib/garage/meta"
{{ if env "DATA_DIRS" }}
data_dir = {{ env "DATA_DIRS" }}
{{ else }}
data_dir = "/var/lib/garage/data"
{{ end }}
db_engine = "{{ if env "DATABASE_ENGINE" }}{{ env "DATABASE_ENGINE" }}{{ else }}lmdb{{ end }}"
metadata_auto_snapshot_interval = "6h"
@@ -34,4 +38,4 @@ api_bind_addr = "0.0.0.0:3903"
admin_token_file = "/run/secrets/admin_token"
metrics_require_token = true
metrics_token_file = "/run/secrets/metrics_token"
{{ end }}
{{ end }}