{"id":13826393,"url":"https://github.com/teonite/docker-nginx-dynamic-sites","last_synced_at":"2026-06-25T22:30:18.440Z","repository":{"id":140595117,"uuid":"48789571","full_name":"teonite/docker-nginx-dynamic-sites","owner":"teonite","description":"Serve static sites based on their domain using Docker \u0026 NGINX","archived":false,"fork":false,"pushed_at":"2019-02-26T23:14:36.000Z","size":15,"stargazers_count":18,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-01-04T19:42:25.593Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/teonite.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}},"created_at":"2015-12-30T08:00:29.000Z","updated_at":"2023-03-26T01:37:32.000Z","dependencies_parsed_at":"2024-01-15T15:47:32.807Z","dependency_job_id":"ec857626-fbb4-4519-83d6-51211406eb1c","html_url":"https://github.com/teonite/docker-nginx-dynamic-sites","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teonite%2Fdocker-nginx-dynamic-sites","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teonite%2Fdocker-nginx-dynamic-sites/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teonite%2Fdocker-nginx-dynamic-sites/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teonite%2Fdocker-nginx-dynamic-sites/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teonite","download_url":"https://codeload.github.com/teonite/docker-nginx-dynamic-sites/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240293303,"owners_count":19778475,"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-08-04T09:01:36.729Z","updated_at":"2026-06-25T22:30:18.391Z","avatar_url":"https://github.com/teonite.png","language":"Dockerfile","funding_links":[],"categories":["Dockerfile"],"sub_categories":[],"readme":"[![TEONITE](http://teonite.com/img/inorbit_by_tnt.png)](http://teonite.com/) Build: [![Circle CI](https://circleci.com/gh/teonite/docker-nginx-dynamic-sites.svg?style=svg)](https://circleci.com/gh/teonite/docker-nginx-dynamic-sites) [![](https://badge.imagelayers.io/teonite/nginx-dynamic-sites:latest.svg)](https://imagelayers.io/?images=teonite/nginx-dynamic-sites:latest 'Get your own badge on imagelayers.io')\n\n\ndocker-nginx-dynamic-sites is a simple solution to have one NGINX docker/container instance for multiple domains (virtual hosts).\n\nThe only thing you need to do is:\n\n1. Launch the contener\n2. Set all domain names to the IP that the container is exposed\n3. Put all your sites to /sites/ (volume exposed) directory with the domain names.\n\n### How does it work?\n\n1. detects and \"creates\" a virtual host based on the requested URL domain\n2. tries to find a folder with the domain name in the `/sites/` directory (eg. `/sites/domainname.com`)\n3. If the folder exists, site is served - if not, the default one is served (`/sites/default`)\n\nWe've created this simple solution, as our whole infrastructure runs on Docker - and we wanted to have only one NGINX instance for all static sites.\n\n### Usage\n\nTo run it:\n\n    $ docker run -d -p 80:80 -v /path/to/sites:/sites/ teonite/nginx-dynamic-sites\n\n### Log files\n\nThere is only one error log file (`/var/log/nginx/error.log`). Access logs are created with domain name eg. `/var/log/nginx/domainname.com.access.log`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteonite%2Fdocker-nginx-dynamic-sites","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteonite%2Fdocker-nginx-dynamic-sites","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteonite%2Fdocker-nginx-dynamic-sites/lists"}