I'm very new to docker and productionizing nodejs web apps. However, after some reading I've determined that a good setup would be:

* nginx container serving static files, ssl, proxying nodejs requests
* nodejs container
* postgesql container

However, I'm now trying to tackle scalability. Seeing as you can define multiple `proxy_pass` statements in an nginx config, could you not spin up a duplicate nodejs container (exactly the same but exposing a different port) and effectively "load balance" your web app? Is it a good architecture?

Also, how would this effect database writes? Are there race conditions I need to specifically architecture for? Any guidance would be appreciated.