Skip to content

containerize a full-stack NodeJS application in Docker

Notifications You must be signed in to change notification settings

prabormukherjee/docker-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

docker-nodejs

Here I build a nodejs app and deploy it using docker. Here is all details to use this repo.

Instruction

  • open terminal or cmd and cd over the project folder
  • run sudo dockerd
  • run docker-compose up
  • visit localhost:3000

Hopefully your app has started now.

Upload into docker cloud

  • create an acconut in case you don't have already at https://hub.docker.com => you'll have an {username}
  • create a repository => you'll have a {reponame}
  • open terminal and run these commands
  • docker login
  • docker build -t {username}/{reponame}:{version} ./app
  • docker push {username}/{reponame}

Change the {username} and {reponame} to your username and repository name. For {version} use 1.0

Now visit to the site, hopefully it has uploaded.

About

containerize a full-stack NodeJS application in Docker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published