This is a demo application from the Docker for Web Developers course on Pluralsight that demonstrates how multiple services can be integrated and orchestrated using Docker and Docker Compose.
-
Install Docker for Mac or Docker for Windows from https://docker.com
-
Set APP_ENV environment variable (using "set" rather than "export" for Windows):
export APP_ENV=development
-
Set your Docker Hub account (any string value will work if you don't have an account):
export DOCKER_ACCT=<yourHubUserName>
-
Run
docker-compose build
-
Run
docker-compose up
-
Visit https://localhost in a browser
-
Live long and prosper
Note: You won't see any data in the page that displays in the browser. To seed the database run the following:
docker exec -it node-codewithdan-1 sh
node dbSeeder.js
Type exit
and press ctrl-c
to exit the shell. You can close the dbSeeder command prompt once you're done.