A Demo project for running node/express app using docker
clone this repo
git clone https://github.com/ankitgadling/hello-node-from-docker.git
cd hello-node-from-docker/
Build docker image
docker build -t hello-node .
Run app using docker container with build image
docker run -d -p 3000:3000 hello-node
Visit app
http://127.0.0.1:3000/
Stop docker container
docker stop <container_id_or_name>
Find conatiner_id using following command
docker ps
Run app using docker-compose
docker-compose up -d
Visit app
http://127.0.0.1:3000/
stop app using docker-compose
docker-compose down