{"id":22628039,"url":"https://github.com/turgon37/docker-nginx","last_synced_at":"2026-05-16T18:07:57.712Z","repository":{"id":85533083,"uuid":"81135675","full_name":"Turgon37/docker-nginx","owner":"Turgon37","description":"Docker image running nginx with secure base configuration","archived":false,"fork":false,"pushed_at":"2017-07-19T15:52:38.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-11T01:48:01.163Z","etag":null,"topics":["docker","http-proxy","http-server","nginx"],"latest_commit_sha":null,"homepage":"","language":"Nginx","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/Turgon37.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":"2017-02-06T21:31:18.000Z","updated_at":"2017-06-24T22:52:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"633342b5-fea6-484e-b16f-7ab89da037d8","html_url":"https://github.com/Turgon37/docker-nginx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Turgon37/docker-nginx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turgon37%2Fdocker-nginx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turgon37%2Fdocker-nginx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turgon37%2Fdocker-nginx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turgon37%2Fdocker-nginx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Turgon37","download_url":"https://codeload.github.com/Turgon37/docker-nginx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Turgon37%2Fdocker-nginx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33113509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","http-proxy","http-server","nginx"],"created_at":"2024-12-09T01:17:53.768Z","updated_at":"2026-05-16T18:07:57.689Z","avatar_url":"https://github.com/Turgon37.png","language":"Nginx","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Nginx\n\n[![](https://images.microbadger.com/badges/image/turgon37/nginx.svg)](https://microbadger.com/images/turgon37/nginx \"Get your own image badge on microbadger.com\")\n[![](https://images.microbadger.com/badges/version/turgon37/nginx.svg)](https://microbadger.com/images/turgon37/nginx \"Get your own version badge on microbadger.com\")\n\nThis images contains an instance of Nginx and a base template for a secure configuration.\nThis image use the concept of site-available and site-enable to make the configuration of  virtual hosts more flexible.\n\nPlease notice that if it's the first time the container is run, the DH parameters file will be generated and this can take a long time.\n\nNginx is configured according to the recommandations on this [site](https://weakdh.org/sysadmin.html)\n\nIt is not intended to be used directly but to be extend for building another nginx image with contains your virtual hosts configurations.\n\n## Docker Informations\n\n* This image expose the following port\n\n| Port           | Usage                |\n| -------------- | -------------------- |\n| 80             | HTTP web application |\n| 443            | HTTP web application |\n\n * This image takes theses environnements variables as parameters\n\n| Environment | Usage                                                                          |\n| ----------- | ---------------                          ------------------------------------- |\n| ENABLE_HTTPS| Set to yes to enable docker https features. Set to no to speed up the first run|\n| NGINX_USER  | The user that nginx worker will use                                            |\n| NGINX_GROUP | The group that nginx worker will use                                           |\n\n * The following volume is exposed by this image\n\n| Volume         | Usage                                               |\n| -------------- | --------------------------------------------------- |\n| /etc/nginx/ssl | The default path where all TLS/SSL crypto files will be put |\n\n## Installation\n\n* Manual build from sources\n\n```\ngit clone\ndocker build -t turgon37/nginx .\n```\n\n* or Automatic pull from hub\n\n```\ndocker pull turgon37/nginx\n```\n\n\n## Usage\n\nUse it as a base for your own nginx images.\n\nThis image contains two folder, /etc/nginx/sites-available and /etc/nginx/sites-enabled. In the first you can put a file per virtual host, each of them will contains the nginx directives. Then, you must create a symbolik link into the sites-enabled for each virtual host you want to enable.\nTake care that the path the symlink must be either relative or absolute from the docker root directory. I recommands you to use a relative one by using a command like this from the sites-available folder :\n```ln -s ../sites-available/php```\n\nAs an example you can create a project folder which contain the two folder sites-available and sites-enabled. Then, you just have to create a dockerfile which encapsulate this image.\n\n\n```\nFROM turgon37/nginx\n\n# copy local files\nCOPY sites-available/ /etc/nginx/sites-available\nCOPY sites-enabled/ /etc/nginx/sites-enabled\n```\n\nOr another way can be to use a host mount point\n\n```\ndocker run\n   -v $(pwd)/sites-enabled:/etc/nginx/sites-enabled:ro \n   -v $(pwd)/sites-available:/etc/nginx/sites-available:ro \n   -p 80:80\n   turgon37/nginx","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturgon37%2Fdocker-nginx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturgon37%2Fdocker-nginx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturgon37%2Fdocker-nginx/lists"}