I'm trying to deploy a Next JS app that connects to the MySQL DB during build time. I tried both Nixpacks & Dockerfile build types without success. The DB is running in another container on the same server. It isn't exposed to the internet.
Things I've tried so far:
1. Using the 'External Port' feature to expose the container port to the host and provide localhost (also tried 127.0.0.1) as host and the appropriate port.
2. Using the internal connection URL from Dokploy.
Both times, I saw the Prisma error "Please make sure your database server is running at...."
Any help will be appreciated. Thanks!