Lightweight nginx container with autoindex and gzip compression for file sharing.
Find a file
Phil 1d4e2ed7bb
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Add comprehensive README with build and usage instructions
2025-09-28 20:49:38 +02:00
conf Added project 2025-07-27 13:10:05 +02:00
.gitignore Initial commit 2025-07-27 10:49:49 +00:00
.woodpecker.yml Changed Workflow CI 2025-09-26 13:16:38 +02:00
Dockerfile Changed Docker build 2025-09-26 13:00:57 +02:00
LICENSE Initial commit 2025-07-27 10:49:49 +00:00
README.md Add comprehensive README with build and usage instructions 2025-09-28 20:49:38 +02:00

docker-nginx-autoindex

Lightweight nginx container with autoindex and gzip compression for file sharing.

Build

docker build -t docker-nginx-autoindex:latest .

Features

  • Autoindex directory listing
  • Gzip compression enabled
  • Alpine-based (small footprint)
  • Health checks included
  • Volume mounting for assets and logs

Docker CLI

docker run -d \
  --name nginx-autoindex \
  -p 8080:80 \
  -v /path/to/files:/assets \
  -v /path/to/logs:/log \
  git.hackmi.ch/phil/docker-nginx-autoindex:latest

Access at http://localhost:8080

Docker Compose

version: '3.8'
services:
  nginx-autoindex:
    image: git.hackmi.ch/phil/docker-nginx-autoindex:latest
    container_name: nginx-autoindex
    ports:
      - "8080:80"
    volumes:
      - ./files:/assets
      - ./logs:/log
    restart: unless-stopped

Volumes

  • /assets - Your files to serve
  • /log - Nginx logs (access.log, error.log)