feat: multi-hdd #35
@@ -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
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user