In this step we'll link a Redis container to the app from step 01.
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.