Closed wouterverduin closed 1 year ago
If you want to change the postgres container port, you also need to make sure it actually binds to the port you specify. It also shouldn't matter as if it's not exposed outside docker, it should work with the default DB_PORT.
Thanks for the reply!
I noticed that indeed it didnst bind to that port. But even if i alter the docker-compose.yml to redirect port 5442:5432 i get the similar error.
[Nest] 1 - 04/04/2023, 9:39:01 AM ERROR [ExceptionHandler] connect ECONNREFUSED 172.26.0.5:5442 Error: connect ECONNREFUSED 172.26.0.5:5442
Docker: postgres:14 "docker-entrypoint.s…" 2 minutes ago Up 2 minutes 0.0.0.0:5442->5432/tcp, :::5442->5432/tcp immich_postgres
Any tips and directions are well appreciated!
Thanks for the reply!
I noticed that indeed it didnst bind to that port. But even if i alter the docker-compose.yml to redirect port 5442:5432 i get the similar error.
[Nest] 1 - 04/04/2023, 9:39:01 AM ERROR [ExceptionHandler] connect ECONNREFUSED 172.26.0.5:5442 Error: connect ECONNREFUSED 172.26.0.5:5442
Docker: postgres:14 "docker-entrypoint.s…" 2 minutes ago Up 2 minutes 0.0.0.0:5442->5432/tcp, :::5442->5432/tcp immich_postgres
Any tips and directions are well appreciated!
Inside Docker doesn't use those exposed ports, so again it doesn't matter. You still need to actually tell it to bind differently for it to work and the defaults should be perfectly fine as is even if you have multiple containers running that already "uses" the port (as long as it's not actually exposed, it doesn't matter).
I think you're misunderstanding how container networking works in Docker.
The bug
Hi All! Was hoping to try out Immich for my photos.
Quite familiar with docker but couldnt get it running with altered settings. I finally got it running with an unaltered docker-compose and .env file and figured out the culprit: the DB_PORT setting.
I am running multiple services on docker and the standard port of 5432 is taken. However if i alter the .env and give it another port number i get errors. From the webpage:
500: connect ECONNREFUSED 172.24.0.7:3001
Docker logs (immich_server):
[Nest] 1 - 04/04/2023, 6:13:17 AM ERROR [ExceptionHandler] connect ECONNREFUSED 172.25.0.2:5442 Error: connect ECONNREFUSED 172.25.0.2:5442
The OS that Immich Server is running on
Ubuntu 22.04
Version of Immich Server
Latest
Version of Immich Mobile App
-
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Additional information
No response