{"id":30981380,"url":"https://github.com/vutrandn94/docker-swarm","last_synced_at":"2025-09-12T08:51:18.957Z","repository":{"id":313850384,"uuid":"1040439167","full_name":"vutrandn94/docker-swarm","owner":"vutrandn94","description":"Deploy docker-swam multi master and example workload","archived":false,"fork":false,"pushed_at":"2025-09-09T04:05:09.000Z","size":33,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-09T06:45:04.653Z","etag":null,"topics":["docker","docker-compose","docker-container","docker-swarm"],"latest_commit_sha":null,"homepage":"","language":null,"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/vutrandn94.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-19T01:36:53.000Z","updated_at":"2025-09-09T04:05:12.000Z","dependencies_parsed_at":"2025-09-09T06:45:06.932Z","dependency_job_id":"e118ae1d-5f19-4f37-9bb0-1cb69e392291","html_url":"https://github.com/vutrandn94/docker-swarm","commit_stats":null,"previous_names":["vutrandn94/docker-swarm"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/vutrandn94/docker-swarm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutrandn94%2Fdocker-swarm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutrandn94%2Fdocker-swarm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutrandn94%2Fdocker-swarm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutrandn94%2Fdocker-swarm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vutrandn94","download_url":"https://codeload.github.com/vutrandn94/docker-swarm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vutrandn94%2Fdocker-swarm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274784344,"owners_count":25349087,"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","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["docker","docker-compose","docker-container","docker-swarm"],"created_at":"2025-09-12T08:51:17.249Z","updated_at":"2025-09-12T08:51:18.939Z","avatar_url":"https://github.com/vutrandn94.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Swarm all-in-one\n| Use case | Tutorial file | \n| :--- | :--- |\n| Deploy new cluster | [deploy-swarm-cluster.md](https://github.com/vutrandn94/docker-swarm/blob/main/deploy-swarm-cluster.md) |\n| Remove node | [remove-node.md](https://github.com/vutrandn94/docker-swarm/blob/main/remove-node.md) |\n\n## Command note\n**Example apply / update 1 stack (declarative):**\n```\n# docker stack deploy -c stack-example.yaml example-app\n```\n\n**Check cluster node:**\n```\n# docker node ls\n```\n\n**Get stack:**\n```\n# docker stack ls\n```\n\n**Delelete 1 stack:**\n```\n# docker stack rm \u003cSTACK_NAME\u003e\n\nExample:\nroot@swarm-master-01:/home/ubuntu# docker stack rm example-app1\nRemoving service example-app1_app\nRemoving service example-app1_mysql8\nRemoving network example-app1_appnet1\n```\n**Get services created by 1 stack:**\n```\n#   docker stack services \u003cSTACK_NAME\u003e\n\nExample:\nroot@swarm-master-01:/home/ubuntu# docker stack services redis-app\nID             NAME              MODE         REPLICAS   IMAGE            PORTS\nvzy2ymucu2gg   redis-app_redis   replicated   1/1        redis:7-alpine   \nn4u7x0glef6r   redis-app_web     replicated   3/3        nginx:alpine     *:8081-\u003e80/tcp\n```\n\n**Delete 1 service:**\n```\n# docker service rm \u003cSERVICE_NAME\u003e\n\nExample:\nroot@swarm-master-01:/home/ubuntu# docker service rm my-nginx\nmy-nginx\n```\n\n**Get service:**\n```\n# docker service ls\n```\n\n**Scale up / down 1 service:**\n```\n# docker service scale \u003cSERVICE\u003e=\u003cREPLICAS\u003e\n\nExample:\nroot@swarm-master-01:/home/ubuntu# docker service scale redis-app_web=5\nredis-app_web scaled to 5\noverall progress: 5 out of 5 tasks \n1/5: running   [==================================================\u003e] \n2/5: running   [==================================================\u003e] \n3/5: running   [==================================================\u003e] \n4/5: running   [==================================================\u003e] \n5/5: running   [==================================================\u003e] \nverify: Service redis-app_web converged \n```\n\n**Example create service imperative:**\n```\n# docker service create --replicas 3 --name my-nginx --constraint 'node.role==worker' -p 8080:80 nginx:alpine\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvutrandn94%2Fdocker-swarm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvutrandn94%2Fdocker-swarm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvutrandn94%2Fdocker-swarm/lists"}