48
submitted 5 months ago* (last edited 5 months ago) by jeena@jemmy.jeena.net to c/selfhosted@lemmy.world

I have many services running on my server and about half of them use postgres. As long as I installed them manually I would always create a new database and reuse the same postgres instance for each service, which seems to me quite logical. The least amount of overhead, fast boot, etc.

But since I started to use docker, most of the docker-compose files come with their own instance of postgres. Until now I just let them do it and were running a couple of instances of postgres. But it's kind of getting rediciolous how many postgres instances I run on one server.

Do you guys run several dockerized instances of postgres or do you rewrite the docker compose files to give access to your one central postgres instance? And are there usually any problems with that like version incompatibilities, etc.?

you are viewing a single comment's thread
view the rest of the comments
[-] sardaukar@lemmy.world 1 points 5 months ago

You've never had to run migrations that lock tables or rebuild an index in two decades?

[-] Shimitar@feddit.it 1 points 5 months ago

Why would that have blocked all my databases at once? That would affect the same database I was migrating, not the others.

[-] sardaukar@lemmy.world 1 points 5 months ago* (last edited 5 months ago)

Yes, it would cause downtime for the one being migrated - right? Or does that not count as downtime?

[-] Shimitar@feddit.it 0 points 5 months ago

Yes it counts indeed... But in that case the service is down while its migrated so the fact the database is also down does it count?

I mean, it's a self hosted home service, not your bank ATM network...

this post was submitted on 22 Mar 2024
48 points (96.2% liked)

Selfhosted

39206 readers
322 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS