{"id":19565365,"url":"https://github.com/nchekwa/docker-swarm-cookbook","last_synced_at":"2026-05-08T02:04:48.529Z","repository":{"id":234200390,"uuid":"788426551","full_name":"nchekwa/docker-swarm-cookbook","owner":"nchekwa","description":"Portainer Template Repos in one file","archived":false,"fork":false,"pushed_at":"2024-09-07T14:45:50.000Z","size":1781,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-09T00:06:04.763Z","etag":null,"topics":["docker","docker-compose","docker-compose-template","docker-swarm","portainer"],"latest_commit_sha":null,"homepage":"","language":"Python","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/nchekwa.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":"2024-04-18T11:51:58.000Z","updated_at":"2024-09-07T14:45:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"08091f5a-b71a-49f5-905b-68086578c36c","html_url":"https://github.com/nchekwa/docker-swarm-cookbook","commit_stats":null,"previous_names":["azdolinski/docker-swarm-cookbook","0nthetop/docker-swarm-cookbook","nchekwa/docker-swarm-cookbook"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nchekwa%2Fdocker-swarm-cookbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nchekwa%2Fdocker-swarm-cookbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nchekwa%2Fdocker-swarm-cookbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nchekwa%2Fdocker-swarm-cookbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nchekwa","download_url":"https://codeload.github.com/nchekwa/docker-swarm-cookbook/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240824113,"owners_count":19863592,"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","docker-compose-template","docker-swarm","portainer"],"created_at":"2024-11-11T05:26:27.303Z","updated_at":"2026-05-08T02:04:43.491Z","avatar_url":"https://github.com/nchekwa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-swarm-cookbook\nDocker Swarm Cookbook Collection\n\n\n\n\n\n\n\n\n\n\n\n\n## Rules:\n\n### Services\n#### Always:\n- Always add a name to container services.\n- Always add a container_name to container services (excluding swarmStacks which not allow this).\n- Always conainer_name must include project name ie. \u003cproject\u003e-\u003cservice\u003e.\n- Always add a restart policy to container services.\n- Always use a volume to container services.\n- Always use database full name, do not use shortcut like 'db' -  use ie mysql. There are projects which are using multiple databases types.\n\n#### Try:\n- Try to add a healthcheck to container services.\n- Try to add traefik label to container services which should be access in public network.\n- Try to add a network to container services.\n\n### Volume\n1) Create a volume always with a name.\n2) Use syntax naming convention for volume: \u003cproject\u003e-\u003cservice\u003e-\u003cvolume\u003e ie. langflow-postgres-data.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnchekwa%2Fdocker-swarm-cookbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnchekwa%2Fdocker-swarm-cookbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnchekwa%2Fdocker-swarm-cookbook/lists"}