Skip to content

This is a template with express.js running in a Docker container

Notifications You must be signed in to change notification settings

damian5/express-docker-template

Repository files navigation

Express Docker template

This project is a simple template with express and Docker.

Getting started

git clone https://github.com/damian5/express-docker-template.git docker-express
cd docker-express
npm install
Create a new .env file with the .env.example content

To setup the docker image

  • Build the Docker image

    docker build -t express-docker .
    
  • Run the image

    docker-compose up
    

Then open http://localhost:8080 to see your app

To stop the container

  • Run docker-compose down

Structure overview

├── README.md
├── src
│   ├── index.js
├── docker-compose
├── package.json
├── Dockerfile
├── dockerignore
├── index.js
└── package-lock.json

About

This is a template with express.js running in a Docker container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published