Static Server
Go to file
2022-11-01 21:03:21 +01:00
.github forgot to add output 2022-11-01 20:54:39 +01:00
conf cleanup 2022-02-07 12:26:42 +01:00
.gitignore matrix build 2022-11-01 20:44:58 +01:00
Dockerfile trial matrix 2022-11-01 20:29:02 +01:00
fetch.mjs use a min version 2022-11-01 21:03:21 +01:00
package.json use a min version 2022-11-01 21:03:21 +01:00
pnpm-lock.yaml use a min version 2022-11-01 21:03:21 +01:00
README.md add badges 2022-04-07 12:05:00 +02:00

NGINX Static Server

Docker Pulls Docker Image Size (tag) Docker Image Version (tag latest semver)

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