Skip to content

siba-9439/docker-vistitor-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visitor App

Simple Node Js app that displays the number of visitors. The visitors value is stored in a redis database

Instructions to run the app in docker

Create a docker network

/> docker create network visitor-network

Run a redis container in a terminal attached to the network

/> docker run -it -p 6379:6379 --name my-redis-server --network visitor-network redis

To build the visitor app image, open a new terminal in the code directory

/visitorapp> docker build -t visitorapp .

To start a container

/visitorapp> docker run -it -p 9999:9999 --network visitor-network visitorapp

Instructions to run the app in using docker-compose

To start all containers

/visitorapp> docker-compose up --build

To stop all containers

/visitorapp> docker-compose down

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.0%
  • Dockerfile 17.0%