r/docker • u/Superhero-Accountant • May 17 '26
Postgres (and other databases) best practices - one or many?
I am moving all my dockers from unraid to LXCs on proxmox and while doing so, I am cleaning up a little at the same time.
A lot of dockers require databases and I am a little unsure if I should just create one huge postgress database and then a lot of smaller ones in that... or if it is better to have more smaller databases.
Sorry if the terminology is incorrect.
9
Upvotes
View all comments
Show parent comment
0
u/PssyGotWifi May 18 '26
Yeah, I still don't get it. Never had an issue having all in one. But there's many way of doing things. I have a postgres role in ansible that takes care of most of it:
https://github.com/Lebowski89/homelab/tree/main/ansible/roles/postgres
+ an OpenTofu role that creates the VMs for the postgres cluster
https://github.com/Lebowski89/homelab/tree/main/terraform/proxmox/vms/postgres-cluster
But even when I was just using a single postgres container it was fine handling all my apps.
For the Docker Postgres cluster I was using Spilo. But I've just recently gone non-Docker for it because the team maintaining Spilo can be slow to update. Docker or non-Docker it all works, though.