Need help with Docker Compose setup for Next.js and Express.js
Unanswered
Southern rough shrimp posted this in #help-forum
Southern rough shrimpOP
I'm trying to set up a Docker Compose configuration for my Next.js and Express.js project. The issue I'm facing is that Next.js requires the Express server to be running during its build process, but Docker Compose doesn't ensure the correct order, causing build failures.
I've tried using depends_on and multi-stage Docker builds without success. Any advice on how to properly configure Docker Compose for this setup would be greatly appreciated!
repo : https://github.com/3IMAD69/TiktokToYTShortsBot
I've tried using depends_on and multi-stage Docker builds without success. Any advice on how to properly configure Docker Compose for this setup would be greatly appreciated!
repo : https://github.com/3IMAD69/TiktokToYTShortsBot
1 Reply
Northern Bobwhite
I am facing the same problem when trying to build NextJS 14 server rendered pages using api folder