This is a simple boilerplate project using RocketSeat's basic training projects with Docker Compose. I'll eventually come back to this repo to remember and/or practice some concepts of using Docker Compose with the methods used here to serve ReactJS web apps and Express Rest APIs.
docker-compose up
or
docker-compose up -d
for detached terminal
Some configurations inside the webpack.config.js file were necessary to containerize the web app. Reference: https://okteto.com/docs/tutorials/webpack/index.html
This approach of letting the .env file exposed outside the project folder may cause problems, I'm not entirely sure, in which case we could use the env_file: configuration inside the docker-compose file.
-
Use a more elaborate project as an example, or at least a more solid boilerplate model
-
Add a database