May 1, 20251 yr 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.
May 1, 20251 yr 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
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.