Error: cannot connect to Postgres. Details: getaddrinfo ENOTFOUND db #15361
Unanswered
evgeniyworkbel
asked this question in
Q&A
Replies: 2 comments 1 reply
-
|
I got the same, anyone able to help? It works when I'm using a database outside the docker, but when it's a local docker database it fails like that. |
Beta Was this translation helpful? Give feedback.
0 replies
-
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I try to run my app on production VPS server via docker-compose, but I get error when running deploy script. How to fix it?
Also I read docs, github discussions, but didn't find good solution. Here is what I read:
https://payloadcms.com/docs/database/migrations
#10676
#4327
https://payloadcms.com/docs/production/deployment
package.json:Dockerfile:docker-compose.yml:.env:POSTGRES_USER=root
POSTGRES_PASSWORD=somepassword
POSTGRES_HOST=db:5432
POSTGRES_DATABASE=like-volley-db
POSTGRES_URL=postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@$POSTGRES_HOST/$POSTGRES_DATABASE
PAYLOAD_SECRET=somesecret
Beta Was this translation helpful? Give feedback.
All reactions