Use nodemon to monitor file changes in your container. The app will restart, if you change any .js, .json or .hjs file.
Install Docker on your system.
- Install instructions for Mac OS X
- Install instructions for Ubuntu Linux
- Install instructions for other platforms
Install Docker Compose on your system.
-
Run
docker-compose build
. This will pull the base images, and install image dependencies. -
Run
docker-compose run web npm install
. This will install thepackage.json
dependencies in theapp
sub-folder. Since this folder is mounted into the Docker image as a volume, any changes made in the image or on your local file system are synced.
Run docker-compose up
to start the container. The app should then be running at http://localhost:3000.