Closed shinjonathan closed 3 years ago
Interesting. I have some questions:
npm run dev
which uses nodemon and webpack so when we save a change to a file, the change is immediately updated in the server, and pushed to the browser. Is it possible to do this with docker? -- I assume docker is doing npm run startMongo data will be stored in the docker container. It's easiest to think of these as virtual machines. The data in the container unless a volume is specified to mount to (in case you want to share data between containers or locally). Therefore the data will be blown away if the container is deleted. Only the image building steps and the environment orchestration steps will be committed to git.
I've built the undebate docker image using npm start
. I wouldn't recommend having hot reload enabled for docker containers. These containers should always be as close to production specs as possible. In most deployment strategies. That image is tagged and deployed to production as is. This build and deploy patter addresses "it works on my machine" kind of bugs.
Most recent commit addresses changes version to mongo 3.6 and node 12
This PR provides a convenient local setup that should minimize the steps & configuration required to boot up the application.
Three containers are provided by this compose environment.