Create a FullStack React/Express/MongoDB app using Docker
João Henrique
1894

This is the article I have been needing for quite some time! I have one question though. In your example you are exposing the ports for each piece of your app, the front end (3000), the API (9000) and the database (27017). For this app to run in production I suppose you could (should?) block outside access to those ports via the firewall? I’m trying to wrap my head around the proper way to deploy something like this.

Additionally I have a question about Docker Compose, if I only modify my front end container, is there a way to only bring that container down using Docker Compose, do do I have to bring all three down, and then back up to deploy the new changes?