{"id":22870235,"url":"https://github.com/berquerant/docker-nginx-sandbox","last_synced_at":"2026-05-03T04:32:55.257Z","repository":{"id":204884970,"uuid":"709793742","full_name":"berquerant/docker-nginx-sandbox","owner":"berquerant","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-14T01:48:33.000Z","size":147,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-15T08:02:52.758Z","etag":null,"topics":["docker","nginx"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/berquerant.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-10-25T12:13:52.000Z","updated_at":"2024-09-13T23:09:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"b2a61f2d-5b98-4232-b777-4df282ac3b54","html_url":"https://github.com/berquerant/docker-nginx-sandbox","commit_stats":null,"previous_names":["berquerant/docker-nginx-sandbox"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berquerant%2Fdocker-nginx-sandbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berquerant%2Fdocker-nginx-sandbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berquerant%2Fdocker-nginx-sandbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/berquerant%2Fdocker-nginx-sandbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/berquerant","download_url":"https://codeload.github.com/berquerant/docker-nginx-sandbox/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246460256,"owners_count":20781073,"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","nginx"],"created_at":"2024-12-13T13:14:15.907Z","updated_at":"2026-05-03T04:32:50.227Z","avatar_url":"https://github.com/berquerant.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-nginx-sandbox\n\nSandbox for nginx.\n\n# Usage\n\n## Prepare environment\n\n``` shell\npipenv install\npipenv shell\n```\n\n## Run nginx and FastAPI application containers\n\nLaunch 3 nginx and 3 apps:\n\n``` shell\nbin/run.sh 3\n```\n\n`docker-compose.yml` is generated, within which nginx0, nginx1, nginx2, api0, api1, api2, httpbin are defined.\n\nApplication settings are located in `dist/NUMBER/files/api/`, main.py will be hot-reloaded.\n\nnginx settings are locaied in `dist/NUMBER/nginx/etc/nginx/`.\nRun `bin/restart_nginx.sh` to restart nginx containers.\n\nHere are some examples of curl:\n\n```\n# nginx0\ncurl localhost:18000/\n# api1\ncurl localhost:19001/\n# api1 via nginx0\ncurl localhost:18000/api1/\n# api2 via nginx1 via nginx0\ncurl localhost:18000/nginx1/api2/\n```\n\n## Regenerate settings files\n\nDo not overwrite existing setting files:\n\n``` shell\nbin/run.sh INSTANCE_NUM\n```\n\nOverwrite:\n\n``` shell\nCLEAN=1 bin/run.sh INSTANCE_NUM\n```\n\nChange ports:\n\n``` shell\nNGINX_PORT=xxx API_PORT=yyy bin/run.sh INSTANCE_NUM\n```\n\nEnable nginx debug log:\n\n``` shell\nDEBUG=1 bin/run.sh INSTANCE_NUM\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberquerant%2Fdocker-nginx-sandbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fberquerant%2Fdocker-nginx-sandbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberquerant%2Fdocker-nginx-sandbox/lists"}