{"id":23776007,"url":"https://github.com/hkdigital/docker-image--nginx","last_synced_at":"2025-07-09T17:35:27.682Z","repository":{"id":41808329,"uuid":"378098172","full_name":"HKdigital/docker-image--nginx","owner":"HKdigital","description":"Docker image with NGINX and some default configurations like a SPA webserver with proxy settings for a prerender service","archived":false,"fork":false,"pushed_at":"2023-05-22T10:04:34.000Z","size":72,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-12T08:45:54.158Z","etag":null,"topics":["docker-image","nginx"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HKdigital.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-06-18T09:21:25.000Z","updated_at":"2022-05-26T07:44:53.000Z","dependencies_parsed_at":"2025-02-21T06:36:30.233Z","dependency_job_id":"ba702112-bd93-474b-aedf-e60e1af77e3a","html_url":"https://github.com/HKdigital/docker-image--nginx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HKdigital/docker-image--nginx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HKdigital%2Fdocker-image--nginx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HKdigital%2Fdocker-image--nginx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HKdigital%2Fdocker-image--nginx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HKdigital%2Fdocker-image--nginx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HKdigital","download_url":"https://codeload.github.com/HKdigital/docker-image--nginx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HKdigital%2Fdocker-image--nginx/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264502279,"owners_count":23618567,"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-image","nginx"],"created_at":"2025-01-01T07:12:15.895Z","updated_at":"2025-07-09T17:35:27.629Z","avatar_url":"https://github.com/HKdigital.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# About\n\nThe image generated by this project can be used to run an NGINX server.\n\nThe docker image contains default configurations for different setups. The default configuration that is installed is `webserver`.\n\nAn interesting configuration is `spa-with-prerender` for public websites (this requires an additional docker container for the prerendering).\n\nAnother interesting configuration is `development-proxy`. This proxy can be run on a local development machine to distribute (proxy) requests from a single port to frontend and backend server ports. This works great in combination with a service like [NGROK](https://ngrok.com/).\n\nSee the [examples](https://github.com/HKdigital/docker-image--nginx/tree/main/examples) folder for more details about how to use the default configurations.\n\n# Usage\n\n## Just try it out (using docker-compose)\n\nBelow an example of using the image in a docker-compose file.\n\nIn the `/examples` folder, you'll find more `docker-files` for the different setups.\n\n```yaml\nversion: \"3.9\"\n\nservices:\n  website:\n    image: hkdigital/nginx   # docker-hub\n    # image: hkdigital-nginx   # local\n    \n    restart: always # \"no\"|always|on-failure|unless-stopped\n\n    ports:\n      # Let docker choose port numbers on the host\n      # - \"80\"\n\n      # host-port -\u003e container port\n      - \"1080:80\"\n\n    volumes:\n      - ./volumes:/mnt # contains: webroot, config, certificates, log, media\n```\n\n### Check NGINX config and reload NGINX when ok\n\nUsing the container script\n\n```\ndocker-compose exec website /srv/check-nginx-config-and-reload.sh\n```\n\nThis can be done manually too\n\n```bash\ndocker-compose exec website nginx -t -c /@config/nginx.conf\ndocker-compose exec website nginx -s reload\n```\n\n# Build locally\n\nIf you just want to use the image to create a container, there is no need to build the image locally. You can use the image from docker-hub.\n\nBuilding the image locally is usually done for development of the image itself.\n\n## Get a working copy from the repository\n\nClone the latest commit from github into a local working directory.\n\n```bash\ngit clone --depth 1 \\\n  git@github.com:hkdigital/docker-images--nginx.git \\\n  hkdigital-nginx\n```\n\n## Build the docker image\n\n```bash\n./build-latest-image.sh\ndocker image ls\n# Shows hkdigital-nginx\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhkdigital%2Fdocker-image--nginx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhkdigital%2Fdocker-image--nginx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhkdigital%2Fdocker-image--nginx/lists"}