Lightweight nginx container with autoindex and gzip compression for file sharing.
- Dockerfile 100%
|
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | nginx | final | minor | `1.24-alpine` → `1.29-alpine` | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4wLjUiLCJ1cGRhdGVkSW5WZXIiOiI0My4wLjUiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=--> Reviewed-on: #2 Co-authored-by: Renovate Bot <renovate-bot@noreply.git.hackmi.ch> Co-committed-by: Renovate Bot <renovate-bot@noreply.git.hackmi.ch> |
||
|---|---|---|
| conf | ||
| .gitignore | ||
| .woodpecker.yml | ||
| Dockerfile | ||
| LICENSE | ||
| README.md | ||
| renovate.json | ||
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)