Lightweight nginx container with autoindex and gzip compression for file sharing.
|
||
---|---|---|
conf | ||
.gitignore | ||
.woodpecker.yml | ||
Dockerfile | ||
LICENSE | ||
README.md |
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)