{"id":16540469,"url":"https://github.com/sameersbn/docker-nginx","last_synced_at":"2026-03-06T06:32:08.030Z","repository":{"id":11153888,"uuid":"13523907","full_name":"sameersbn/docker-nginx","owner":"sameersbn","description":"A Dockerfile that installs nginx (from source) with nginx-rtmp module support (php5 support can be added using the sameersbn/php5-fpm image)","archived":false,"fork":false,"pushed_at":"2019-07-06T07:37:55.000Z","size":162,"stargazers_count":74,"open_issues_count":0,"forks_count":45,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-12-09T07:45:29.567Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/sameersbn.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-12T15:29:42.000Z","updated_at":"2025-06-09T20:42:54.000Z","dependencies_parsed_at":"2022-09-23T21:11:43.127Z","dependency_job_id":null,"html_url":"https://github.com/sameersbn/docker-nginx","commit_stats":null,"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"purl":"pkg:github/sameersbn/docker-nginx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameersbn%2Fdocker-nginx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameersbn%2Fdocker-nginx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameersbn%2Fdocker-nginx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameersbn%2Fdocker-nginx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sameersbn","download_url":"https://codeload.github.com/sameersbn/docker-nginx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameersbn%2Fdocker-nginx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30164594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T04:43:31.446Z","status":"ssl_error","status_checked_at":"2026-03-06T04:40:30.133Z","response_time":250,"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":[],"created_at":"2024-10-11T18:52:33.052Z","updated_at":"2026-03-06T06:32:08.005Z","avatar_url":"https://github.com/sameersbn.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Docker Repository on Quay.io](https://quay.io/repository/sameersbn/nginx/status \"Docker Repository on Quay.io\")](https://quay.io/repository/sameersbn/nginx)\n\n# sameersbn/nginx:1.15.12-0\n\n- [Introduction](#introduction)\n  - [Contributing](#contributing)\n  - [Issues](#issues)\n- [Getting started](#getting-started)\n  - [Installation](#installation)\n  - [Quickstart](#quickstart)\n  - [Command-line arguments](#command-line-arguments)\n  - [Configuration](#configuration)\n  - [Logs](#logs)\n- [Maintenance](#maintenance)\n  - [Upgrading](#upgrading)\n  - [Shell Access](#shell-access)\n\n# Introduction\n\n`Dockerfile` to create a [Docker](https://www.docker.com/) container image for [NGINX](http://nginx.org/en/) with [ngx_pagespeed](https://github.com/pagespeed/ngx_pagespeed) and [nginx-rtmp-module](https://github.com/arut/nginx-rtmp-module) module support.\n\nNGINX is a web server with a strong focus on high concurrency, performance and low memory usage. It can also act as a reverse proxy server for HTTP, HTTPS, SMTP, POP3, and IMAP protocols, as well as a load balancer and an HTTP cache.\n\n## Contributing\n\nIf you find this image useful here's how you can help:\n\n- Send a pull request with your awesome features and bug fixes\n- Help users resolve their [issues](../../issues?q=is%3Aopen+is%3Aissue).\n- Support the development of this image with a [donation](http://www.damagehead.com/donate/)\n\n## Issues\n\nIf you are using SELinux, please check out [this policy](support/selinux)\n\nBefore reporting your issue please try updating Docker to the latest version and check if it resolves the issue. Refer to the Docker [installation guide](https://docs.docker.com/installation) for instructions.\n\nSELinux users should try disabling SELinux using the command `setenforce 0` to see if it resolves the issue.\n\nIf the above recommendations do not help then [report your issue](../../issues/new) along with the following information:\n\n- Output of the `docker version` and `docker info` commands\n- The `docker run` command or `docker-compose.yml` used to start the image. Mask out the sensitive bits.\n- Please state if you are using [Boot2Docker](http://www.boot2docker.io), [VirtualBox](https://www.virtualbox.org), etc.\n\n# Getting started\n\n## Installation\n\nAutomated builds of the image are available on [Dockerhub](https://hub.docker.com/r/sameersbn/nginx) and is the recommended method of installation.\n\n\u003e **Note**: Builds are also available on [Quay.io](https://quay.io/repository/sameersbn/nginx)\n\n```bash\ndocker pull sameersbn/nginx:1.15.12-0\n```\n\nAlternatively you can build the image yourself.\n\n```bash\ndocker build -t sameersbn/nginx github.com/sameersbn/docker-nginx\n```\n\n## Quickstart\n\nStart NGINX using:\n\n```bash\ndocker run --name nginx -d --restart=always \\\n  --publish 80:80 \\\n  sameersbn/nginx:1.15.12-0\n```\n\n*Alternatively, you can use the sample [docker-compose.yml](docker-compose.yml) file to start the container using [Docker Compose](https://docs.docker.com/compose/)*\n\n## Command-line arguments\n\nYou can customize the launch command of NGINX server by specifying arguments to `nginx` on the `docker run` command. For example the following command prints the help menu of `nginx` command:\n\n```bash\ndocker run --name nginx -it --rm \\\n  --publish 80:80 \\\n  sameersbn/nginx:1.15.12-0 -h\n```\n\n## Configuration\n\nTo configure NGINX as per your requirements edit the default [nginx.conf](nginx.conf) and mount it at `/etc/nginx/nginx.conf`.\n\n```bash\ndocker run --name nginx -it --rm \\\n  --publish 80:80 \\\n  --volume /srv/docker/nginx/nginx.conf:/etc/nginx/nginx.conf \\\n  sameersbn/nginx:1.15.12-0\n```\n\nTo configure virtual hosts, mount the directory containing the virtual host configurations at `/etc/nginx/sites-enabled/`.\n\n```bash\ndocker run --name nginx -it --rm \\\n  --publish 80:80 \\\n  --volume /srv/docker/nginx/nginx.conf:/etc/nginx/nginx.conf \\\n  --volume /srv/docker/nginx/sites-enabled:/etc/nginx/sites-enabled \\\n  sameersbn/nginx:1.15.12-0\n```\n\n\u003e **Note**: SELinux users should update the security context of the host mountpoints so that it plays nicely with Docker:\n\u003e\n\u003e ```bash\n\u003e mkdir -p /srv/docker/nginx\n\u003e chcon -Rt svirt_sandbox_file_t /srv/docker/nginx\n\u003e ```\n\nTo reload the NGINX configuration on a running instance you can send the `HUP` signal to the container.\n\n```bash\ndocker kill -s HUP nginx\n```\n\n## Logs\n\nTo access the NGINX logs, located at `/var/log/nginx`, you can use `docker exec`. For example, if you want to tail the logs:\n\n```bash\ndocker exec -it nginx tail -f /var/log/nginx/access.log\n```\n\n# Maintenance\n\n## Upgrading\n\nTo upgrade to newer releases:\n\n  1. Download the updated Docker image:\n\n  ```bash\n  docker pull sameersbn/nginx:1.15.12-0\n  ```\n\n  2. Stop the currently running image:\n\n  ```bash\n  docker stop nginx\n  ```\n\n  3. Remove the stopped container\n\n  ```bash\n  docker rm -v nginx\n  ```\n\n  4. Start the updated image\n\n  ```bash\n  docker run -name nginx -d \\\n    [OPTIONS] \\\n    sameersbn/nginx:1.15.12-0\n  ```\n\n## Shell Access\n\nFor debugging and maintenance purposes you may want access the containers shell. If you are using Docker version `1.3.0` or higher you can access a running containers shell by starting `bash` using `docker exec`:\n\n```bash\ndocker exec -it nginx bash\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameersbn%2Fdocker-nginx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsameersbn%2Fdocker-nginx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameersbn%2Fdocker-nginx/lists"}