It's a simple application anyway, and this slows down startup quite a lot
|2 weeks ago|
|.github/workflows||1 year ago|
|Dockerfile||2 weeks ago|
|LICENSE||5 months ago|
|README.md||2 months ago|
|default.conf||11 months ago|
|docker-compose.yml||1 year ago|
|docker-entrypoint.sh||2 months ago|
Docker Static Server
Customizable and performant static file server - powered by Nginx.
Note: This container is designed for hosting static files, rather than for serving a static site.
"Why not just use
If you're not really bothered, the default
nginx container will work just fine for you, however this container has a few modifications which make it more suited to serving static files:
- Use environment variables for customization
- Healthcheck endpoint
- GZIP all files
X-Forwarded-Forheader when getting client IP
Nginx makes a brilliant file server regardless of how you use it.
version: "2.3" services: static: image: theorangeone/static-server:latest volumes: - ".:/srv:ro" ports: - "80:80"
The server will serve files in the
/srv directory. This directory can be mounted read-only.
This image supports some customizations: