Docker - NO DB + Local DB

Hello everyone,

I created a new target (development - local) with docker with no Database (only Redis).
Then I created a new database on my localhost Postgres (port 5432).
On the new target, I changed the db connection to use the new server and ran the migrations and then imported data from my docker database to this new server.

On Database manager and PGAdmin I can see data and run queries, the problem is with the server actions, it’s returning:

status": "500", "code": "ENOTFOUND", "message": "getaddrinfo ENOTFOUND db", "stack": "Error: getaddrinfo ENOTFOUND db\n at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26)"

I see that some people ran across this same problem with external databases, but not with local ones.

As suggested in another topic by @salvuccicarlos, I copied the app folder from. docker_target to docker_no_db_target and it’s still not working.

On the target folder, database/db.json and app/modules/connections/db.json are with the correct credentials.

Is this a bug or Am I doing something wrong?
This process is part of having Digital Ocean’s managed database in our production environment.

Many thanks!

Community Page
Last updated: