You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wait, isn't this because of how we do the port mapping in docker compose? It looks like this:
ports:
- ${POSTGRES_PORT}:5432
which means if you update the .env file, then the 5432 port inside the container will be mapped to a different port in your host machine. But the problem is that the app will try to connect to POSTGRES_PORT inside the container, because it's using that env var.
I think something like this would solve it:
ports:
- ${POSTGRES_PORT}:${POSTGRES_PORT}
& we need to add the POSGRES_PORT env var to the environment key too:
Version
latest
Describe the bug
The devcontainer does not support changing the DB port to something other than 5432.
Reproduction
.env
.System Info
Macbook Air M2
Validations
The text was updated successfully, but these errors were encountered: