support multi-hdd config #5
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
how could something like this could be achieved via
.envandgarage.toml.templ? or include/concatenate an external file with custom configurations?https://garagehq.deuxfleurs.fr/documentation/operations/multi-hdd/
If you put
data_dir = [{{ env "UGLY_DATA_DIR_DUMP" }}]and then your.tmplfile and then just dump a super ugly'{ path = "/path/to/old_data", read_only = true }, { path = "/path/to/new_hdd1", capacity = "2T" }, { path = "/path/to/new_hdd2", capacity = "4T" },'then you're done? This might be guaranteed to cause further headaches 😬 I can't quite think of a recipe that deals with a complex config setup like this 🤔thanks! but yeah we'll be dealing with quote-escaping issues then, no?
Yes, you'd need to check the usage of
'and". You could potentially escape\"on the.envside. There might be some obscure functionality in Golang templating to help you out here but I wouldn't know. Good luck!@decentral1se what's the templating called? i seem to find a lot of these for golang and never the official reference
It's a disaster in terms of docs: https://pkg.go.dev/text/template#hdr-Actions I just search online and read what other people did. Looking at other recipes... there are even features which are only implemented in swarms version of the templating which aren't even supported in the compose spec. Dog bless us all.
besides templating issues, i'm thinking disks could be mounted on
$LOCAL_FOLDER_DATA/diskXso they example config would be like this:but i'm not sure if docker will show the nested mount points to the container.
reference:
https://git.coopcloud.tech/coop-cloud/garage/src/branch/main/compose.yml#L33
looks like it would work, so no changes needed to
compose.yml: