ankitgadling / hello-node-from-docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hello Node from Docker

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/

Run app using docker

Option 1

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

Option 2

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

About


Languages

Language:JavaScript 62.9%Language:Dockerfile 37.1%