#578·AgentGPT

Cannot reach database in docker

Author: JumpyWizard404Created May 23, 2023Updated Oct 13, 2025
Labelsbug

Please check that this issue hasn't been reported before.

  • I searched previous Bug Reports didn't find any similar reports.

Expected Behavior

Platform Container is able to reach the database container on creation

Current behaviour

During docker-compose up --build exaction the following error message shows up that the application is unable to talk to its database on docker.

next | next | Specify a schema next | $ prisma migrate deploy --schema=./schema.prisma next | next | Environment variables loaded from .env next | Prisma schema loaded from prisma/schema.prisma next | Datasource "db": MySQL database "reworkd_platform" at "db:3306" next | next | Error: P1001: Can't reach database server at db:3306 next | next | Please make sure your database server is running at db:3306.

Steps to reproduce

Deploy the container's with docker-compose up --build

Possible solution

No response

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Acknowledgements

  • My issue title is concise, descriptive, and in title casing.
  • I have searched the existing issues to make sure this bug has not been reported yet.
  • I am using the latest version of AgentGPT.
  • I have provided enough information for the maintainers to reproduce and diagnose the issue.