1
Fork 0
theorangeone.net-legacy/content/projects/docker-static-server.md

885 B

title repo subtitle
Docker Static Server RealOrangeOne/docker-static-server Static file server designed for serving files not websites

Sometimes, you just need a simple container to host some static files. Whether that be files for download, images to show, or a directory of files.

Why not just use Nginx?

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
  • Use X-Forwarded-For header when getting client IP

{{% repobutton %}}

Previously I had created tstatic to do this, but Nginx is far better as a server than node. The less node in my stack, the better!