You shouldn’t use pm2 in software containers. That makes things more complex and not standard.
To be fair, it was a straight up conversion of an old VM in vagrant and Docker was looked at as a one to one replacement before learning otherwise.
They even have an explicit, “run in container” mode.