-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get build to connect to postgres #134
Comments
Is Postgres in the same container as cal.com ? If not then your postgresql instance is not reachable on local host. Do you have a docked-compose or something like that ? |
Localhost to the container, during the build, is the container itself and not your local development machine. The docker compose build steps are provided because it creates a network bridge which allows you to reference a postgres container to build against. It's worth mentioning that the build does not need to reference the same database as it will reference in runtime. |
I'm having the same issue, but in my case I had setup
|
It didn't work using the default network created by compose. However, once I added a dedicated network it worked out by running the container on its own. FWIW, I have it running behind a reverse proxy (traefik) that requires my own custom docker-compose setup. |
@moekify what do you mean by a dedicated network? As far as I know, the one in docker-compose is already shared by the three containers. |
@brunoamaral I wrote my own docker-compose as I have a lot of custom properties for traefik (reverse-proxy) to work correctly with calcom :) I usually use the default network that gets created by docker-compose instead of specifying a new network inside the compose file. However, with the default network it didn't work in calcoms case. Why, I don't know 🤷 |
I verified that the connection works with
pg_isready
, however during the build step it fails to connect to localhost (and the provided db url)Any hints? I spent quite some time to debug this
The text was updated successfully, but these errors were encountered: