Worker cannot connect to the DB while the server can? [SELF-HOST]
Hi guys,
I am trying to deploy TwentyCRM to Dokploy using Docker Compsose. The server works perfect without any issues, but the worker cannot connect to the database? I assume it uses the same connection right?
I get the following error:
[Nest] 34 - 09/03/2025, 10:22:37 AM ERROR [TypeOrmModule] Unable to connect to the database (core). Retrying (3)...
Error: getaddrinfo EAI_AGAIN twenty-crm-postgresdb-uniqueid
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:122:26)
Would appreciate some help as I urgently need to deploy this.
I am trying to deploy TwentyCRM to Dokploy using Docker Compsose. The server works perfect without any issues, but the worker cannot connect to the database? I assume it uses the same connection right?
I get the following error:
[Nest] 34 - 09/03/2025, 10:22:37 AM ERROR [TypeOrmModule] Unable to connect to the database (core). Retrying (3)...
Error: getaddrinfo EAI_AGAIN twenty-crm-postgresdb-uniqueid
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:122:26)
Would appreciate some help as I urgently need to deploy this.