digitalocean / digitalocean/sample-dockerfile
How can my app connect to database in App Platform
- Dominant language
- Go
- Stars
- 102
- Forks
- 315
- PR merge metrics
- No merged PRs in 30d
Description
My Database settings contains my API Service in the Trusted Sources list.
The App Spec contains all Database configuration and my API Service configuration contains the Database's env variables, and reference the Dockerfile path.
But, when the App Platform try to make a deploy and the process try to connect in database, the log emit the following error:
Error: connect ETIMEDOUT 1X.XXX.X.X:XXXXX
[2022-10-04 21:52:36] at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1159:16) {
[2022-10-04 21:52:36] errno: -110,
[2022-10-04 21:52:36] code: 'ETIMEDOUT',
[2022-10-04 21:52:36] syscall: 'connect',
[2022-10-04 21:52:36] address: '1X.XXX.X.X',
[2022-10-04 21:52:36] port: XXXXX
[2022-10-04 21:52:36] }
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.