-
|
I'd set this up before you produced the selfhosting manual documentation, so I might be missing something, but I've also looked at the install & bootstrapping scripts and couldn't obviously see it there, but I wondered if the I've no experience with Garage or S3 so I have no knowledge of how important it should be, but I did generate my own with Just wondering if I'm being overly cautious or conversely whether the bootstrapping scripts and selfhosting instructions should take it into account? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Done a bit of reading and the easiest option might actually be to use an environmental variable, then garage:
image: dxflrs/garage:v2.2.0
ports:
- "${HOST_PORT_GARAGE_S3:-3900}:3900"
environment:
GARAGE_RPC_SECRET: ${GARAGE_RPC_SECRET}
# GARAGE_RPC_SECRET_FILE: /run/typetype-secrets/garage_rpc_secret
volumes:
- typetype_secrets:/run/typetype-secrets
- ./garage.toml:/etc/garage.toml:ro
- garage_meta:/var/lib/garage/meta
- garage_data:/var/lib/garage/data
restart: unless-stoppedThat also raises the possibility of using the existing typetype-secret busybox container to generate the secret file if desired. |
Beta Was this translation helpful? Give feedback.
-
|
Mmmm yeah, that’s actually a cleaner option. Thanks for digging into it and for pointing me at the env-var path. Garage supports Docs: https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/#rpc_secret I’ll update the setup/bootstrap flow around that:
For existing installs, ur Thx :p |
Beta Was this translation helpful? Give feedback.
Done a bit of reading and the easiest option might actually be to use an environmental variable, then
garage.tomlcan be static and we could run the garage container like this.