{"id":16031806,"url":"https://github.com/realorangeone/docker-static-server","last_synced_at":"2025-06-13T11:34:02.863Z","repository":{"id":145272158,"uuid":"262444207","full_name":"RealOrangeOne/docker-static-server","owner":"RealOrangeOne","description":"Customizable and performant static file server - powered by Nginx","archived":false,"fork":false,"pushed_at":"2024-12-06T00:48:18.000Z","size":44,"stargazers_count":9,"open_issues_count":6,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T12:43:08.680Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/theorangeone/static-server","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RealOrangeOne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"RealOrangeOne","ko_fi":"theorangeone","liberapay":"theorangeone","custom":["https://theorangeone.net/support/"]}},"created_at":"2020-05-08T22:49:43.000Z","updated_at":"2023-11-11T07:03:25.000Z","dependencies_parsed_at":"2024-12-18T10:11:59.459Z","dependency_job_id":"878641f4-60ec-4e38-b9f4-baf9dab849bc","html_url":"https://github.com/RealOrangeOne/docker-static-server","commit_stats":{"total_commits":48,"total_committers":3,"mean_commits":16.0,"dds":"0.33333333333333337","last_synced_commit":"147dc72a3767a7921b3657e89f182b55f8d76ec6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealOrangeOne%2Fdocker-static-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealOrangeOne%2Fdocker-static-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealOrangeOne%2Fdocker-static-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RealOrangeOne%2Fdocker-static-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RealOrangeOne","download_url":"https://codeload.github.com/RealOrangeOne/docker-static-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289394,"owners_count":20914464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-08T21:05:52.564Z","updated_at":"2025-04-05T04:42:39.848Z","avatar_url":"https://github.com/RealOrangeOne.png","language":"Dockerfile","funding_links":["https://github.com/sponsors/RealOrangeOne","https://ko-fi.com/theorangeone","https://liberapay.com/theorangeone","https://theorangeone.net/support/"],"categories":[],"sub_categories":[],"readme":"# Docker Static Server\n\n![CI](https://github.com/RealOrangeOne/docker-static-server/workflows/CI/badge.svg)\n\nCustomizable and performant static file server - powered by Nginx.\n\n__Note__: This container is designed for hosting static files, rather than for serving a static site. For that, check out [`docker-website-server`](https://github.com/RealOrangeOne/docker-website-server).\n\n## _\"Why not just use `nginx:alpine`?\"_\n\nIf 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:\n\n- Use environment variables for [customization](#customization)\n- Healthcheck endpoint\n- GZIP all files\n- Use `X-Forwarded-For` header when getting client IP\n\nNginx makes a brilliant file server regardless of how you use it.\n\n## Usage\n\n```yml\nversion: \"2.3\"\n\nservices:\n  static:\n    image: theorangeone/static-server:latest\n    volumes:\n      - \".:/srv:ro\"\n    ports:\n      - \"80:80\"\n```\n\nThe server will serve files in the `/srv` directory. This directory can be mounted read-only.\n\n## Customization\n\nThis image supports some customizations:\n\n- `$INDEX` (`on` / `off`): Enable file listing, powered by [`autoindex`](https://nginx.org/en/docs/http/ngx_http_autoindex_module.html)\n- `$FANCY_INDEX` (`on` / `off`): Enable file listing, powered by [`fancy_index`](https://www.nginx.com/resources/wiki/modules/fancy_index/)\n- `$PUID`: Set the user nginx runs as (default `1000`)\n\nIf you'd rather add some additional configuration yourself, you can mount an additional nginx config at `/etc/nginx/extra.conf`, which will be included in the primary config.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealorangeone%2Fdocker-static-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealorangeone%2Fdocker-static-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealorangeone%2Fdocker-static-server/lists"}