Skip to content

gmartinsoc/cvd19

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NEE

Template project to develop with NodeJs + Express + EJS(Template Engine)

How to run

in both cases first run npm install

Without docker

npm start

With docker

Build you image

docker build -t <you-user-name>/node-web-app .

than run exposing port 80 to internet

docker run -p 80:3000 <you-user-name>/node-web-app

optionally you can change internal container port with the environment variable PORT

docker run -p 80:12345 -e "PORT=12345" <you-user-name>/node-web-app

or set the database connection string

docker run -p 80:12345 -e "MONGO_CONNECTION_STR=mongodb://user:password@host:port" <you-user-name>/node-web-app

Using docker-compose

Edit docker-compose.yml file, and run on shell:

docker-compose build && docker-compose up

Todo

  • Set restart policy
  • Protect secrets
  • Protect database access
  • Set monitoring tools

Reference

Tutorials

// Gitignore

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published