Update: seems like the persistence section is sufficient; I have
persistence:
enabled: true
existingClaim: nextcloud-config-claim
at the end of my values file which references a volume claim (and volume) that I created manually upfront. The importand file is config.php. Back that thing up immediately and three times, print it if you have to. The secret in there is unrecoverable otherwise and needed for any repair actions.
I also use the postgresql sub-chart (by simply enabling postgresql as database) and provide a claim there:
postgresql:
enabled: true
global:
postgresql:
auth:
username: XX
password: YY
database: nextcloud
image:
repository: postgres
tag: "14"
postgresqlDataDir: /bitnami/pgdata
primary:
persistence:
enabled: true
existingClaim: nextcloud-db-claim
Hope it helps!
I don’t see anyone mentioning sth power efficient yet, so I will throw my two cents in here; I just ordered an Odroid M1S to take over some jobs from my RPi4 (8GB). Has not yet arrived so I cannot praise it yet but might be worth a look!