Static Server
Go to file
cupcakearmy 8b063e8919
add workflow
2022-02-07 12:26:50 +01:00
.github add workflow 2022-02-07 12:26:50 +01:00
conf cleanup 2022-02-07 12:26:42 +01:00
Dockerfile update nginx version 2021-10-17 19:14:35 +02:00
README.md Update README.md 2019-08-10 22:48:20 +02:00

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