Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bitliner/static-node-2

Docker image of nodejs app to host static sites
https://github.com/bitliner/static-node-2

Last synced: 11 days ago
JSON representation

Docker image of nodejs app to host static sites

Awesome Lists containing this project

README

        

# 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

```