When setting up on a fresh machine or a machine where the node_modules aren't installed locally, the React Client wasn't properly installing the node_modules in the Docker container, so the container would crash.
Solution
Fix the volumes parameter in the docker-compose.yml file for the Client that had an incorrect filepath.
Testing
This was tested by cleaning the folder of all node_modules and spinning up the containers to make sure the site still loaded.
Notes
Now, we don't need to have any node_modules installed locally.
Problem
When setting up on a fresh machine or a machine where the
node_modules
aren't installed locally, the React Client wasn't properly installing thenode_modules
in the Docker container, so the container would crash.Solution
Fix the
volumes
parameter in thedocker-compose.yml
file for the Client that had an incorrect filepath.Testing
This was tested by cleaning the folder of all
node_modules
and spinning up the containers to make sure the site still loaded.Notes
Now, we don't need to have any
node_modules
installed locally.