{"id":19711720,"url":"https://github.com/brightcommerce/docker-nginx","last_synced_at":"2026-05-10T20:32:47.201Z","repository":{"id":20759287,"uuid":"24043894","full_name":"brightcommerce/docker-nginx","owner":"brightcommerce","description":"Dockerfile to build Nginx v1.6.0 container image.","archived":false,"fork":false,"pushed_at":"2014-09-15T11:43:53.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-10T14:29:29.228Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/brightcommerce.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":"2014-09-15T05:21:10.000Z","updated_at":"2015-11-25T00:19:11.000Z","dependencies_parsed_at":"2022-07-13T23:10:41.095Z","dependency_job_id":null,"html_url":"https://github.com/brightcommerce/docker-nginx","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brightcommerce%2Fdocker-nginx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brightcommerce%2Fdocker-nginx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brightcommerce%2Fdocker-nginx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brightcommerce%2Fdocker-nginx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brightcommerce","download_url":"https://codeload.github.com/brightcommerce/docker-nginx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241029937,"owners_count":19896994,"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-11-11T22:13:31.631Z","updated_at":"2026-05-10T20:32:42.139Z","avatar_url":"https://github.com/brightcommerce.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Nginx\n\nDockerfile to build Nginx v1.6.0 container image.\n\n## Table of Contents\n\n- [Version](#version)\n- [Installation](#installation)\n- [Configuration](#configuration)\n    - [Volumes](#volumes)\n    - [Ports](#ports)\n- [How To Use](#how-to-use)\n    - [Shell Access](#shell-access)\n    - [Daemonized Service](#daemonized-service)\n- [Upgrading](#upgrading)\n- [Copyright](#copyright)\n\n## Version\n\nThe current release (1.6.0.20140915) contains scripts to install Nginx v1.6.0, and uses the Brightcommerce Ubuntu 14.04 base image. Our version numbers will reflect the version of Nginx being installed.\n\n## Installation\n\nPull the latest version of the image from the Docker Index. This is the recommended method of installation as it is easier to update the image in the future. These builds are performed by the **Docker Trusted Build** service.\n\n``` bash\ndocker pull brightcommerce/nginx:latest\n```\n\nor specify a tagged version:\n\n``` bash\ndocker pull brightcommerce/nginx:1.6.0.20140915\n```\n\nAlternately you can build the image yourself:\n\n``` bash\ngit clone https://github.com/brightcommerce/docker-nginx.git\ncd docker-nginx\ndocker build -t=\"$USER/nginx\" .\n```\n\n## Configuration\n\nThis image uses volumes and environment variables to control the nginx server configuration.\n\n### Volumes\n\n* `/etc/nginx/sites-available`: Site configurations\n* `/usr/share/nginx/html`: HTML for the default site, and \n* `/etc/nginx/conf.d`: Change sites configurations using it.\n* `/var/log/nginx`: Access log from here.\n\nPass with `-v` docker option. Don't forget to use absolute path here.\n\n### Ports\n\nThis installation exposes port `80`.\n\n## How To Use\n\n### Shell Access\n\nThe following Docker `run` command above will start a container and give you a shell. Don't forget to start the service running the `startup \u0026` script:\n\n``` bash\n$ docker run -p 80:80 -i \\\n-v `pwd`/volumes/sites-available:/etc/nginx/sites-available \\\n-v `pwd`/volumes/html:/usr/share/nginx/html \\\n-v `pwd`/volumes/conf.d:/etc/nginx/conf.d \\\n-v `pwd`/volumes/log:/var/log/nginx \\\n-t brightcomemrce/nginx:latest /bin/bash\n```\n\n### Daemonized Service\n\nThe following command above will start a container and return its' ID:\n\n``` bash\n$ docker run --name nginx -p 80:80 -d \\\n-v `pwd`/volumes/sites-available:/etc/nginx/sites-available \\\n-v `pwd`/volumes/html:/usr/share/nginx/html \\\n-v `pwd`/volumes/conf.d:/etc/nginx/conf.d \\\n-v `pwd`/volumes/log:/var/log/nginx \\\n-t brightcommerce/nginx:latest\n```\n\n## Upgrading\n\nTo upgrade to newer releases, simply follow this 3 step upgrade procedure.\n\n- **Step 1**: Stop the currently running image:\n\n``` bash\ndocker stop nginx\n```\n\n- **Step 2**: Update the docker image:\n\n``` bash\ndocker pull brightcommerce/nginx:latest\n```\n\n- **Step 3**: Start the image:\n\n``` bash\ndocker run --name nginx -d [OPTIONS] brightcommerce/nginx:latest\n```\n\n## Copyright\n\nCopyright 2014 Brightcommerce, Inc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrightcommerce%2Fdocker-nginx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrightcommerce%2Fdocker-nginx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrightcommerce%2Fdocker-nginx/lists"}