You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering an issue running a Next.js application in a Docker container using PM2's cluster mode. While the application runs successfully in fork mode, it fails when attempting to use cluster mode.
Current Behavior
Application fails to start in cluster mode with PM2 inside Docker
Works fine in fork mode
When executing into the container and running pm2 start manually, it works in cluster mode
Only fails when using pm2-runtime which is required for Docker
I'm encountering an issue running a Next.js application in a Docker container using PM2's cluster mode. While the application runs successfully in fork mode, it fails when attempting to use cluster mode.
Current Behavior
pm2 start
manually, it works in cluster modepm2-runtime
which is required for DockerEnvironment
ecosystem.config.js
Dockerfile CMD
Error Logs
Steps to Reproduce
Additional Information
pm2 start
inside the container works in cluster modepm2-runtime
in cluster modeAny assistance or guidance would be greatly appreciated.
The text was updated successfully, but these errors were encountered: