Update Docker compose file to include
node-pm and run the Express server with 4 workers.
Since the app instances run as separate processes, they do not share the same memory space. That is, objects are local to each instance of the app. Therefore, you cannot maintain state in the application code.
better to use one of the many tools out there that does it for you automatically; for example node-pm or cluster-service.