Skip to content

Simple docker node express service to get started with your node app

Notifications You must be signed in to change notification settings

jacekelgda/docker-node-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

You need to have docker and docker-compose installed

Building image

docker-compose build

Running container

docker-compose up

Entering container

docker-compose exec web bash

Accessing web service

Edit your hosts file and add your docker machine ip to localhost

Go to http://localhost:3000

You should see "Hello world!"

Destroy container

docker-compose down

Doing your own service

Get familiar with contents of app directory - it's contents are copied into /src/ directory in container.

When container starts, it runs app.js script.

About

Simple docker node express service to get started with your node app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published