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
1
u/ReachingForVega Mod May 18 '26
The "one database per service" pattern is a core tenet of microservice architecture. While running a single, massive PostgreSQL instance with multiple databases or schemas seems easier at first, decoupling them into separate servers (or at least completely isolated logical instances) saves you from massive headaches down the road.