Skip to content

Softhatch/docker-nodejs-vagrant-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dockerize simple NodeJS app with Vagrant configuration

SFW

Vagrant comes with support out of the box for using Docker as a provider. This allows for your development environments to be backed by Docker containers rather than virtual machines providing a good workflow for developing Dockerfiles.

Prerequisites

  • Mac OSX

Before you being, ensure you have the following in your system as well.

Installaion

To run the project:

$ git clone <repo>
$ cd docker_nodejs_app
$ vagrant up

Go to http://localhost:8080 to see the output

To create Docker image

You will need to create docker hub account before you can do this.

$ cd docker_nodejs_app
$ docker build -t your-docker-hub-username/repo-name:tag-id .

To run Docker image locally

$ docker run -p your-docker-hub-username/repo-name:tag-id

About

For those who want to use Vagrant with Docker provider

Resources

Stars

Watchers

Forks

Packages

No packages published