{"id":19212031,"url":"https://github.com/joedborg/docker-compose-scaling","last_synced_at":"2026-04-12T11:43:46.665Z","repository":{"id":145095449,"uuid":"72211690","full_name":"joedborg/docker-compose-scaling","owner":"joedborg","description":"Example for using Docker Compose scale with Nginx","archived":false,"fork":false,"pushed_at":"2016-10-28T19:57:40.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-22T15:23:00.121Z","etag":null,"topics":["docker","docker-compose","nginx","scale"],"latest_commit_sha":null,"homepage":null,"language":"Nginx","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/joedborg.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":"2016-10-28T13:52:41.000Z","updated_at":"2024-06-19T04:00:02.147Z","dependencies_parsed_at":null,"dependency_job_id":"9cca100c-fd33-482d-b018-07c9d9ee8834","html_url":"https://github.com/joedborg/docker-compose-scaling","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joedborg%2Fdocker-compose-scaling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joedborg%2Fdocker-compose-scaling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joedborg%2Fdocker-compose-scaling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joedborg%2Fdocker-compose-scaling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joedborg","download_url":"https://codeload.github.com/joedborg/docker-compose-scaling/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240286518,"owners_count":19777353,"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","docker-compose","nginx","scale"],"created_at":"2024-11-09T13:45:27.968Z","updated_at":"2025-10-30T06:33:59.040Z","avatar_url":"https://github.com/joedborg.png","language":"Nginx","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Compose DNS Load Balancing Example\nThis is to demonstrate the Docker Compose `scale` command and how it can be\nused with Nginx for instant scaling.\n\n## Building\n### Requirements\n* Go\n* Docker Compose\n* GNU Make\n\nTo build, first compile the Go web application server.  This will simply\nrespond with the container's ID.\n\n```\n$ make\n```\n\n## Running\n```\n$ docker-compose up -d\n```\nThen browse to [http://localhost](http://localhost) and see the name of the single application\ncontainer.\n\n## Scaling\nTo scale the application server, run\n```\n$ docker-compose scale application=2\n```\n(or any number of instances).  Then refresh the browser to see the container\nname change as Docker's DNS resolver does round-robin.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoedborg%2Fdocker-compose-scaling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoedborg%2Fdocker-compose-scaling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoedborg%2Fdocker-compose-scaling/lists"}