Playing with docker-compose up/down using a simple app that uses mongo.
141
Simple example of a dockerized Node/Mongo app
# Run in Docker
docker-compose up
# use -d flag to run in background
# Tear down
docker-compose down
# To be able to edit files, add volume to compose file
volumes: ['./:/usr/src/app']
# To re-build
docker-compose build
Check the GIST for any basic command you need to play around with docker.
Check out the github repository @sydrawat to look at the files that I have modified.
Made following the tutorial from Brad Traversey!
Content type
Image
Digest
Size
338.5 MB
Last updated
about 7 years ago
docker pull sydrawat/docker-node-mongo