Custom postgres port, e.g. 5435 in Docker? #8561
Unanswered
abdessalaam
asked this question in
Self hosted
Replies: 1 comment 1 reply
-
Hey, the steps you have shared are correct.
This is working correctly since the logs show rails trying to connect to 5435. From the logs shared ,rails is not able to connect to postgres via port 5435. Could you try debugging that? SSH to the rails container and see if you can connect to postgres container.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My port 5432 is already used, so I have changed docker-compose:
and added a variable to .env
POSTGRES_PORT=5435
to use 5435 for Postgres instead.However, I cannot connect to postgres. The error I get is:
If I try:
Then the error is:
I would appreciate any help. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions