{"id":19361242,"url":"https://github.com/sohelamin/docker-swarm-example","last_synced_at":"2026-03-17T18:03:44.889Z","repository":{"id":42910961,"uuid":"231796430","full_name":"sohelamin/docker-swarm-example","owner":"sohelamin","description":"Docker Swarm Example","archived":false,"fork":false,"pushed_at":"2023-01-05T17:13:15.000Z","size":781,"stargazers_count":5,"open_issues_count":12,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T12:52:21.295Z","etag":null,"topics":["docker","docker-compose","docker-swarm","dockerstack","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/sohelamin.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}},"created_at":"2020-01-04T16:47:18.000Z","updated_at":"2023-01-31T22:44:33.000Z","dependencies_parsed_at":"2023-02-04T08:16:07.424Z","dependency_job_id":null,"html_url":"https://github.com/sohelamin/docker-swarm-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sohelamin/docker-swarm-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohelamin%2Fdocker-swarm-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohelamin%2Fdocker-swarm-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohelamin%2Fdocker-swarm-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohelamin%2Fdocker-swarm-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sohelamin","download_url":"https://codeload.github.com/sohelamin/docker-swarm-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sohelamin%2Fdocker-swarm-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30628405,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: 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":["docker","docker-compose","docker-swarm","dockerstack","nodejs"],"created_at":"2024-11-10T07:21:26.586Z","updated_at":"2026-03-17T18:03:44.859Z","avatar_url":"https://github.com/sohelamin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Swarm Example\n\u003e A sample app for docker swarm\n\n## Usage\n\n1. Push to registry or use existing image\n    ``` \n    docker build -t sohelamin/docker-swarm-example .\n    docker login --username=sohelamin\n    docker push sohelamin/docker-swarm-example:latest\n    ```\n\n2. Install docker in master \u0026 worker nodes\n    ``` \n    sudo apt install apt-transport-https ca-certificates curl software-properties-common\n    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -\n    sudo add-apt-repository \"deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable\"\n    sudo apt update\n    sudo apt install docker-ce\n    sudo usermod -aG docker $USER\n    ```\n\n3. Configure docker swarm in master node\n    ```\n    docker swarm init --advertise-addr \u003cMASTER_NODE_IP\u003e\n    ```\n\n4. Join docker swarm from worker node\n    ```\n    docker swarm join --token docker swarm join --token \u003cTOKEN\u003e \u003cMASTER_NODE_IP\u003e:2377\n    ```\n\n5. Check the connected node in master node\n    ```\n    docker node ls\n    ```\n\n6. Git clone the github repo then deploy stack\n    ```\n    git clone https://github.com/sohelamin/docker-swarm-example.git\n    cd docker-swarm-example\n    docker stack deploy -c docker-compose.yml docker-swarm-example\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsohelamin%2Fdocker-swarm-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsohelamin%2Fdocker-swarm-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsohelamin%2Fdocker-swarm-example/lists"}