Skip to content

bitliner/static-node-2

Repository files navigation

static-node-2

Docker image of nodejs app to host static sites

Usage with docker-compose

  1. Create a fig.yml or docker-compose.yml (install docker-compose if you did not do it yet)
  2. Set ports parameter specifying the port to bind to port 80 of the container
  3. specify volumes: specifically folder for logs and folder containing static file
  4. run docker-compose up -d

No need to write some server logic! It is already included in the container.

frontend:
  image: bitliner/static-node-2
  mem_limit: 512m
  ports:
    - 9001:80
  volumes:
    - ./public:/usr/src/app/dist
    - ./logs:/usr/src/app/logs

About

Docker image of nodejs app to host static sites

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors