Static Server
Go to file
2020-03-21 21:24:24 +01:00
conf version bump and compatible with sapper 2020-03-21 21:24:24 +01:00
html initial commit 2019-08-10 22:46:44 +02:00
Dockerfile version bump and compatible with sapper 2020-03-21 21:24:24 +01:00
README.md Update README.md 2019-08-10 22:48:20 +02:00

NGINX Static Server

This is a little docker image for histing static content efficiently. Supports ETags & Brotli/GZip compression out of the box.

Quickstart 🚀

# docker-compose.yml
version: '3.7'

services:
  server:
    image: cupcakearmy/static
    restart: unless-stopped
    ports:
      - 80:80
    volumes:
      - ./public:/srv:ro
docker-compose up -d

Custom Configuration

# my.conf
server {
    listen 80;
    server_name _;

    location / {
        root   /srv;
        try_files $uri /index.html =404;
    }
}
version: '3.7'

services:
  server:
    # ...
    volumes:
      - ./my.conf:/usr/local/nginx/conf/sites/default.conf
    # ...