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.

Connecting Docker Containers on Docker Network Rather than Host???

Featured Replies

This should be a very simple task but I have not been able to figure it out for the life of me.

 

I have Immich, PostgreSQL_Immich, and Redis running on my Unraid server, all using Bridge mode for network. When I run like this and use the machine IP (lets say 10.0.0.xx for example) everything talks fine. 

Now I ran docker network create dockernet to create a docker only network for these to communicate, without using the host adapter and to keep things a little more secure. So using hosnames, I can see that the hostnames are resolved properly (lets say these are 172.0.0.xx) and the ports have not changed. 

But now Immich just CANT REACH POSTGRES??? Put it back to bridge and use the host IPs, no problem. 

 

I created the dockernet from the spaceinvader tutorial but it just won't work for me. Is there like one tiny detail I am missing here?

I really appreciate any help at all.

  • Community Expert

for immich to talk to postgres, you have to tell immich to talk to it via it's hostname which has to be spelled exactly as the container name for postgres.

 

for example if postgres container is called "postgresql_immich" you have to refer to it exactly the same way.

 

to test the connection, open the container console and ping the hostname if the container supports ping

 

38CAD1F8-B11F-4ED4-AE92-952CBE5E7566.png.afb2e8f35b066886667c8cf739822acd.png4FF12736-EE37-45E8-BD7E-CD8F660776CA.png.90d0da253f00ade501f20bb25bfb6256.png

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.