Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Streamlining SQL

Featured Replies

Has anyone tried or is there any benefit too:

Runing a single SQL instance (PostgreSQL) for multiple dockers?

 

I'm running NextCloud with MariaDB and want to play with Immich, but imagine I'm being a little redundant and wasteful with running two separate SQL engines.

 

Thanks

  • Community Expert

I like using only one of each, but still have to run both PG and mariadb since some containers only support one or the other.

 

I prefer using mariadb whenever I can, much simpler.

Edited by Kilrah

1 hour ago, Arbadacarba said:

I'm being a little redundant and wasteful with running two separate SQL engines.

If you duplicate an existing container, they share the data layers in the docker image. There is practically no redundancy and waste when doing this, the only "extra" would be the repeated stuff in the appdata folders.

  • Author

OK, so running two instances of PostgreSQL is better than runing one PostgreSQL and one MariaDB

 

But there is no advantage to running just one instance of PestgreSQL instead of two...

 

I don't know if it's even possible to set up two data bases in one PostgreSQL docker.

  • Community Expert
36 minutes ago, Arbadacarba said:

I don't know if it's even possible to set up two data bases in one PostgreSQL docker.

Of course it is but you need either the command line or a tool like pgadmin, and roles/perms in PG are pretty complicated to set up.

  • 2 weeks later...
  • Author

OK, so I gave it a try... Deleted ALL my dockers that use SQL... Deleted MariaDB... Cleared the old folders and templates.

 

Installed Postgres15

 

Installed PGadmin

 

in PG admin created a new Database for FreshRSS

 

Installed FreshRSS and gave it access to the Postgres Database

 

Success

 

Created a Database for Nextcloud

 

Installed Nextcloud and gave it access to the Postgres Database...

 

OK, this was not as difficult as I had expected...

 

Now on to Immich... Wish me luck

10 hours ago, Arbadacarba said:

Wish me luck

Better get familiar with database backup and restore using PGadmin. If one of your containers that shares your database gets messed up, you will need to dig in to database repair instead of taking the easy way out and blowing away the database and starting over.

 

Not that it's extremely difficult, just more work to keep multiple databases in a single container maintained vs. the ability to work on one at a time where there is no chance of interaction between the database you are having problems with and the ones that are running fine.

 

As I said before, there is almost no benefit to running a single container with multiple databases vs. using multiple identical containers each with their own database, and plenty of downsides.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.