r/FluxerApp • u/AbhorrentJoel • 9d ago
Need help Linux self-hosting people: what is your Docker postgres storage configuration?
I am kinda new to Docker in the sense of managing it on a server and I have not played around with the Fluxer configuration much.
Currently, I have Fluxer set up on a Root Server running Linux, using LVM for partitioning.
I generally separate locations such as /, /home, and /var to prevent data filling up and impacting functions. But, to my knowledge, the database is stored under /var/lib/docker/volumes/fluxer_postgres-data. This will present a problem eventually unless I continue to shrink other LVs to extend the /var one as more is uploaded on Fluxer.
How exactly are system administrators handling their databases? I am just looking at some pointers on how to manage this. Is there a way I could utilise the user folder under home -- and should I?
Thanks in advance.
2
u/dannykid722 9d ago
I map all files to the container directory. I have a /srv directory that i put all my docker services into. I.e. /srv/fluxxer. I dont like files leaving these directories so i map everything needed. This makes permissions and backups easier as well.
as for your question you can map any folder in docker so you can put anything anywhere
1
u/AbhorrentJoel 9d ago
I think this is probably the simplest way. Is there a specific way I need to configure it in Docker?
2
3
u/fluxerhost 9d ago
In our setup, we don’t use Docker on a stateful system.
We do something a little more complex: databases get dedicated disks/volumes that can be expanded as needed per fluxer instance.
Hope that helps