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 c3c7ce22f8
update version
1 month ago
.github add workflow 5 months ago
conf cleanup 5 months ago
Dockerfile update version 1 month ago
README.md add badges 3 months ago

README.md

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