Sign inSign up

iamapinan/expressjs-with-nodemon

By iamapinan

•Updated about 6 years ago

NodeJS+Expressjs+Nodemon for dev and production use. Expressjs folder structure included.

Image
0

1.0K

iamapinan/expressjs-with-nodemon repository overview

⁠Express with Nodemon.

Docker Image CI

⁠About this repo
  • Build with node-alpine
  • Working directory /usr/src/app
  • Port 3000
  • Environment STARTMODE=dev to run under nodemon environment.
⁠Environments
  • dev run express app with nodemon.
  • production run express app without nodemon.
⁠To run with docker run

docker run --name my-api -d --rm --env STARTMODE=dev -p 3000:3000 iamapinan/expressjs-with-nodemon:latest

⁠Docker Compose
version: '3'

services:
    api:
        image: iamapinan/expressjs-with-nodemon:latest
        restart: always
        environment: 
            STARTMODE=production
        ports: 
            - 3000:3000
⁠Contributed by

Tag summary

Content type

Image

Digest

Size

44.5 MB

Last updated

about 6 years ago

docker pull iamapinan/expressjs-with-nodemon