Static Server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
cupcakearmy 0e4526e4d0
update nginx version
3 months ago
conf version bump and compatible with sapper 2 years ago
html initial commit 2 years ago
Dockerfile update nginx version 3 months ago
README.md Update README.md 2 years ago

README.md

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
    # ...