{"id":15658880,"url":"https://github.com/hacfi/docker-proxy","last_synced_at":"2026-04-20T13:05:04.454Z","repository":{"id":146726618,"uuid":"112749045","full_name":"hacfi/docker-proxy","owner":"hacfi","description":"Docker proxy based on nginx for zero downtime deployments","archived":false,"fork":false,"pushed_at":"2017-12-12T00:38:30.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T02:43:33.841Z","etag":null,"topics":["deployment","deployment-automation","docker","docker-proxy","expose","nginx"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/hacfi.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":"2017-12-01T14:28:51.000Z","updated_at":"2017-12-12T01:42:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"b2c9f7b8-aa06-4808-88be-42a64a73b394","html_url":"https://github.com/hacfi/docker-proxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hacfi/docker-proxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacfi%2Fdocker-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacfi%2Fdocker-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacfi%2Fdocker-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacfi%2Fdocker-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hacfi","download_url":"https://codeload.github.com/hacfi/docker-proxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacfi%2Fdocker-proxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32048446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["deployment","deployment-automation","docker","docker-proxy","expose","nginx"],"created_at":"2024-10-03T13:14:17.957Z","updated_at":"2026-04-20T13:05:04.439Z","avatar_url":"https://github.com/hacfi.png","language":"Shell","readme":"# Docker proxy\n\nDocker proxy based on nginx to have zero downtime deployments. It exposes two\nports so you can preview your next version before switching your live system.\nPort 80 is meant for your live system and this is where your main load balancer\nshould point to. You can setup a secondary load balancer which points to port\n8080 so you can preview your next version.\n\n\n## Build image\n\n```\ndocker build -t docker-proxy .\n```\n\n\n## Usage\n\nStart the proxy with the following command:\n\n```\ndocker run -d -v /var/run/docker.sock:/var/run/docker.sock -p 80:80 -p 8080:8080 --name docker-proxy docker-proxy\n```\n\nOf course you can use different ports like `-p 5000:80 -p 5001:8080` or just\nexpose port 80 if you don’t need the second port to preview a release.\n\nStart your dockerized application and then run\n\n```\ndocker exec -it docker-proxy proxy1 \u003cCONTAINER_ID\u003e\n```\n\nto switch proxy 1 to that container. You can now access this application on port\n80 (or whatever port you exposed port 80 on).\n\nWhen you release a new version start the new container and run\n\n```\ndocker exec -it docker-proxy proxy2 \u003cNEW_CONTAINER_ID\u003e\n```\n\nto be able to preview it on port 8080.\n\nWhen everything looks good just run\n\n```\ndocker exec -it docker-proxy proxy1 \u003cNEW_CONTAINER_ID\u003e\n```\n\nto release the new version on the main port.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhacfi%2Fdocker-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhacfi%2Fdocker-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhacfi%2Fdocker-proxy/lists"}