{"id":20225646,"url":"https://github.com/kalaspuff/docker-python-nginx-proxy","last_synced_at":"2026-04-05T21:04:48.046Z","repository":{"id":147540010,"uuid":"130557026","full_name":"kalaspuff/docker-python-nginx-proxy","owner":"kalaspuff","description":"🐳 [base-image] Docker base-image using nginx proxy to microservice backend. Python 3.7.4. nginx 1.16.1. Debian based.","archived":false,"fork":false,"pushed_at":"2019-08-28T21:21:37.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-03T12:46:02.899Z","etag":null,"topics":["base-image","containerization","docker","docker-image","image","microservice","nginx","python"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/kalaspuff/python-nginx-proxy/","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/kalaspuff.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-22T10:26:25.000Z","updated_at":"2020-12-17T07:09:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"b5791712-859b-450f-95ad-f0af9a7ac16e","html_url":"https://github.com/kalaspuff/docker-python-nginx-proxy","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/kalaspuff/docker-python-nginx-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalaspuff%2Fdocker-python-nginx-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalaspuff%2Fdocker-python-nginx-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalaspuff%2Fdocker-python-nginx-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalaspuff%2Fdocker-python-nginx-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kalaspuff","download_url":"https://codeload.github.com/kalaspuff/docker-python-nginx-proxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kalaspuff%2Fdocker-python-nginx-proxy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262182784,"owners_count":23271685,"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":["base-image","containerization","docker","docker-image","image","microservice","nginx","python"],"created_at":"2024-11-14T07:14:05.900Z","updated_at":"2025-12-30T22:23:12.578Z","avatar_url":"https://github.com/kalaspuff.png","language":"Shell","readme":"# kalaspuff/python-nginx-proxy – docker image\nDocker base-image using nginx proxy to backend on port 8080.\n\n* GitHub: https://github.com/kalaspuff/docker-python-nginx-proxy\n* Docker Hub: https://hub.docker.com/r/kalaspuff/python-nginx-proxy/\n\nTo make nginx service start when running the Docker container, make sure\nto start the CMD section with `start-service`.\n\nThe base-image will expose port 80, where nginx is configured to forward\nto your running code on port 8080. WebSockets may be used on the HTTP routes\n`/ws/*` and/or `/websocket/*`\n\n\n### Pull from registry\n\n```\n$ docker pull kalaspuff/python-nginx-proxy\n```\n\n\n### Use in Dockerfile\n\n_ENTRYPOINT for images build from this base-image will use the custom-built `start-service` script._\nJust use _CMD_ to run your service process. nginx will be started daemonized.\n\n```dockerfile\nFROM kalaspuff/python-nginx-proxy:1.3.0\n...\nCMD python my_service_application.py\n```\n\n\n## Package / tools versions\n\n| Software | Version  | Extra                                |\n| -------- | -------- | ------------------------------------ |\n| Python   | 3.7.4    |                                      |\n| nginx    | 1.16.1   |                                      |\n| protobuf | 3.9.1    |                                      |\n| poetry   | 0.12.7   |                                      |\n| Debian   | stretch  | Image based on `debian:stretch-slim` |\n\nAlso included are the Debian packages for `git`, `curl`, `vim`, `ps`, `nano`, `netcat`, `netstat` and `unzip`.\n\n\n## Logging\n\n`nginx` is configured to store logs in the `/logs/` directory which could be mounted\n as a volume for external access.\n\n\n---\n\n### Build Docker image\n\nThe latest versions are already pushed to the Docker registry for use. If you want to\nbuild the image yourself run:\n\n```\n$ make build\n```\n\n---\n\n### Example\n\n*Starting docker container with netcat listening on port 8080*\n\n```\n$ docker run -p 4711:80 -ti kalaspuff/python-nginx-proxy:1.3.0 nc -lp 8080\n```\n\n*curl to connect to container forwarded to nginx proxy at port 80*\n\n```\n$ curl http:/localhost:4711/\n```\n\n*Output from netcat on container*\n```\nGET / HTTP/1.0\nHost: localhost\nX-Real-IP: 172.17.0.1\nX-Forwarded-For: 172.17.0.1\nX-Forwarded-Proto: http\nConnection: close\nUser-Agent: curl/7.54.0\nAccept: */*\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalaspuff%2Fdocker-python-nginx-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkalaspuff%2Fdocker-python-nginx-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkalaspuff%2Fdocker-python-nginx-proxy/lists"}