Skip to content

fjroa/cursoDocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js with MongoDB and Docker Demo

Application demo designed to show how Node.js and MongoDB can be run in Docker containers. The app uses Mongoose to create a simple database that stores Docker commands and examples.

##To run the app with Docker Containers:

  1. Install Docker Toolbox (http://docker.com/toolbox).

if using v 1.12

  1. open a terminal

if Not using v 1.12

  1. Open the Docker QuickStart Terminal. After VirtualBox starts in the terminal navigate to the app's folder.

  2. Run the commands listed in node.dockerfile (see the comments at the top of the file) in the Docker QuickStart Terminal.

  3. Navigate to http://192.168.99.100:8080 in your browser to view the site. This assumes that's the IP assigned to VirtualBox - change if needed.

##To run the app with Node.js and MongoDB (without Docker):

  1. Install and start MongoDB (https://docs.mongodb.org/manual/installation).

  2. Install Node.js (http://nodejs.org).

  3. Open config/config.development.json and adjust the host name to your MongoDB server name (localhost normally works if you're running locally).

  4. Run npm install.

  5. Run node dbSeeder.js to get the sample data loaded into MongoDB. Exit the command prompt.

  6. Run node server.js to start the server.

  7. Navigate to http://localhost:8080 in your browser.

##config settings ##if running mongo as a docker containe and node as standalone host": "192.168.99.100:27017", ##running linked mongo container to node container "host": "mongodb",

"# cursoDocker" "# cursoDocker"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published