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.

【Docker Port Question】Why can't we connect nextcloud to external databases?

Featured Replies

My NC is working fine.

But one day I wanted to play with docker 😅 and wanted to split my NC DB (MySQL) into different ip.

BUT Direct Error...

 

Error code.

SQLSTATE[HY000][2002] Connection Refused

 

I would like to know why this is happening, thanks.

  • 4 weeks later...

BUMP

 

I was playing with NC and FileRun and encoutered the same problem in both those dockers. So i don't think it's NC related.

 

1217409802_Screenshot2022-07-07at16-28-01NetNas_UpdateContainer.thumb.png.447ae13c054a2daff73b2987e0d16e4a.png

 

When the network type is changed to custom:br an given a different ip, it cannot connect to the database. Still, the ip's are within the same subnet. It does not matter if the databasehost is changed to localhost or 123.456.7.89 .

 

To make it more rare, the problem only exists in my backup server. The NC docker on my main server is configured with custom network type. Both servers running unraid 6.9.2.

 

What am i doing wrong? Please, enlighten me.

Edited by Aran

Found it:

 

Set 'Host access to custom networks' to 'Enabled' from the docker settings page. When greyed-out, stop the docker service => enable host access to custom network => start docker again.

 

 

🙄

  • Community Expert

If the containers are on the same custom bridge network (not the default bridge) then you should be able to use the container name as the database host. Custom bridge networks have an internal DNS mapping for each container so containers can reference each other by name.

  • 1 year later...
On 7/7/2022 at 7:47 PM, primeval_god said:

If the containers are on the same custom bridge network (not the default bridge) then you should be able to use the container name as the database host. Custom bridge networks have an internal DNS mapping for each container so containers can reference each other by name.

That was it for me, thank you!

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.