{"id":16098615,"url":"https://github.com/funnyzak/nginx-docker","last_synced_at":"2025-03-18T07:30:52.361Z","repository":{"id":114592844,"uuid":"427836157","full_name":"funnyzak/nginx-docker","owner":"funnyzak","description":"A nginx docker image with some useful modules.","archived":true,"fork":false,"pushed_at":"2024-11-29T09:03:53.000Z","size":27,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T15:54:36.584Z","etag":null,"topics":["docker","docker-image","nginx","nginx-latest"],"latest_commit_sha":null,"homepage":"","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/funnyzak.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}},"created_at":"2021-11-14T04:23:41.000Z","updated_at":"2024-11-29T09:04:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"af5c2209-1401-4318-b3b6-30229d74777d","html_url":"https://github.com/funnyzak/nginx-docker","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnyzak%2Fnginx-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnyzak%2Fnginx-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnyzak%2Fnginx-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/funnyzak%2Fnginx-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/funnyzak","download_url":"https://codeload.github.com/funnyzak/nginx-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244177648,"owners_count":20410993,"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":["docker","docker-image","nginx","nginx-latest"],"created_at":"2024-10-09T18:24:09.856Z","updated_at":"2025-03-18T07:30:52.348Z","avatar_url":"https://github.com/funnyzak.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nginx Docker\n\n[![Build Status][build-status-image]][build-status]\n[![Docker Stars][docker-star-image]][docker-hub-url]\n[![Docker Pulls][docker-pull-image]][docker-hub-url]\n[![GitHub release (latest by date)][latest-release]][repository-url]\n[![GitHub][license-image]][repository-url]\n\n\u003e This repository is no longer maintained. The latest built images can be found in the [Docker Release](https://github.com/funnyzak/docker-release/tree/main/Docker/nginx).\n\n\u003e 此仓库已不在维护，最新构建的镜像请查看 [Docker Release](https://github.com/funnyzak/docker-release/tree/main/Docker/nginx) 。\n\n\n\n\nA nginx docker image with some useful modules.\n\nDownload size of this image is:\n\n[![Image Size][docker-image-size]][docker-hub-url]\n\n[Docker hub image: funnyzak/nginx][docker-hub-url]\n\n**Docker Pull Command**: `docker pull funnyzak/nginx:latest`\n\n**China Mirror**: `docker pull registry.cn-beijing.aliyuncs.com/funnyzak/nginx:latest`\n\n## Installed Modules\n\n- [ngx_http_geoip_module.so](https://nginx.org/en/docs/http/ngx_http_geoip_module.html)\n- [ngx_http_image_filter_module.so](https://nginx.org/en/docs/http/ngx_http_image_filter_module.html)\n- ngx_http_perl_module.so\n- ngx_http_xslt_filter_module.so\n- ngx_mail_module.so\n- ngx_stream_geoip_module.so\n- ngx_stream_module.so\n- [ngx-fancyindex](https://github.com/aperezdc/ngx-fancyindex)\n- [headers-more-nginx-module](https://github.com/openresty/headers-more-nginx-module)\n- ...\n\nMore modules can be found in [Dockerfile](https://github.com/funnyzak/nginx-docker/blob/main/Dockerfile).\n\n## Usage\n\n### docker\n\nFirst, create a `nginx.conf` file in your project directory, and then run the following command:\n\n```bash\ndocker run -d -t -i --name nginx --restar on-failure \\\n  -v /path/to/nginx.conf:/etc/nginx/nginx.conf \\\n  -v /path/to/conf.d:/etc/nginx/conf.d \\\n  -p 1688:80 \\\n  funnyzak/nginx\n```\n\n### docker-compose\n\nFirst, create a `docker-compose.yml` file in your project directory:\n\n```yaml\nversion: “3.3”\nservices:\n  nginx:\n    image: funnyzak/nginx\n    container_name: nginx\n    environment:\n      - TZ=Asia/Shanghai\n    volumes:\n      - ./nginx/nginx.conf:/etc/nginx/nginx.conf\n      - ./nginx/conf.d:/etc/nginx/conf.d\n    restart: on-failure\n    ports:\n      - “1688:80” \n```\n\nNow, running `docker-compose up -d` will run the application for you.\n\n### Docker Build\n\n```bash\ndocker build \\\n--build-arg VCS_REF=`git rev-parse --short HEAD` \\\n--build-arg BUILD_DATE=`date -u +\"%Y-%m-%dT%H:%M:%SZ\"` \\\n--build-arg VERSION=\"1.23.3\"\n-t funnyzak/nginx:1.23.3 .\n```\n\n## Conf Configuration\n\n### Nginx.conf\n\n```conf\nload_module /usr/lib64/nginx/modules/ngx_http_image_filter_module.so;\nload_module /usr/lib64/nginx/modules/ngx_stream_module.so;\nload_module /usr/lib64/nginx/modules/ngx_http_geoip_module.so;\nload_module /usr/lib64/nginx/modules/ngx_http_xslt_filter_module.so;\nload_module /usr/lib64/nginx/modules/ngx_stream_geoip_module.so;\n# load_module /usr/lib64/nginx/modules/ngx_http_perl_module.so;\n# load_module /usr/lib64/nginx/modules/ngx_mail_module.so;\n\nuser  nginx;\nworker_processes  1;\n\n#error_log  logs/error.log;\n#error_log  logs/error.log  notice;\n#error_log  logs/error.log  info;\n\n#pid        logs/nginx.pid;\n\n\nevents {\n    worker_connections  1024;\n}\n\n\nhttp {\n    include       mime.types;\n    default_type  application/octet-stream;\n\n    #log_format  main  ‘$remote_addr - $remote_user [$time_local] “$request” ‘\n    #                  ‘$status $body_bytes_sent “$http_referer” ‘\n    #                  ‘”$http_user_agent” “$http_x_forwarded_for”’;\n\n    #access_log  logs/access.log  main;\n\n    sendfile        on;\n    #tcp_nopush     on;\n\n    #keepalive_timeout  0;\n    keepalive_timeout  65;\n\n    #gzip  on;\n\n    include /etc/nginx/conf.d/*.conf;\n}\n```\n\n## Reference\n\n- [MaxMind (GeoIp Data)](https://www.maxmind.com/en/accounts/288367/geoip/downloads)\n- [Nginx Book](https://ericrap.notion.site/Nginx-1c32ea493c134c36977d8fbd14226079)\n- [Nginx Help](https://docs.nginx.com/)\n\n## Contribution\n\nIf you have any questions or suggestions, please feel free to submit an issue or pull request.\n\n\u003ca href=\"https://github.com/funnyzak/vue-starter/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=funnyzak/nginx-docker\" /\u003e\n\u003c/a\u003e\n\n## License\n\nMIT License © 2022 [funnyzak](https://github.com/funnyzak)\n\n[build-status-image]: https://github.com/funnyzak/nginx-docker/actions/workflows/build.yml/badge.svg\n[build-status]: https://github.com/funnyzak/nginx-docker/actions\n[repository-url]: https://github.com/funnyzak/nginx-docker\n[license-image]: https://img.shields.io/github/license/funnyzak/nginx-docker?style=flat-square\u0026logo=github\u0026logoColor=white\u0026label=license\n[latest-release]: https://img.shields.io/github/v/release/funnyzak/nginx-docker\n[docker-star-image]: https://img.shields.io/docker/stars/funnyzak/nginx.svg?style=flat-square\n[docker-pull-image]: https://img.shields.io/docker/pulls/funnyzak/nginx.svg?style=flat-square\n[docker-image-size]: https://img.shields.io/docker/image-size/funnyzak/nginx\n[docker-hub-url]: https://hub.docker.com/r/funnyzak/nginx\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunnyzak%2Fnginx-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunnyzak%2Fnginx-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunnyzak%2Fnginx-docker/lists"}