{"id":19308689,"url":"https://github.com/mtulio/ansible-role-docker-services","last_synced_at":"2026-03-02T00:31:03.321Z","repository":{"id":89055044,"uuid":"298940108","full_name":"mtulio/ansible-role-docker-services","owner":"mtulio","description":"Ansible role to build dynamically docker-compose files to help in small environments with standalone docker servers.","archived":false,"fork":false,"pushed_at":"2020-09-27T23:39:45.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-15T09:24:50.325Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","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/mtulio.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":"2020-09-27T02:50:13.000Z","updated_at":"2025-04-06T18:22:58.000Z","dependencies_parsed_at":"2023-06-13T17:53:33.341Z","dependency_job_id":null,"html_url":"https://github.com/mtulio/ansible-role-docker-services","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mtulio/ansible-role-docker-services","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Fansible-role-docker-services","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Fansible-role-docker-services/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Fansible-role-docker-services/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Fansible-role-docker-services/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtulio","download_url":"https://codeload.github.com/mtulio/ansible-role-docker-services/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Fansible-role-docker-services/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29988040,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T22:42:38.399Z","status":"ssl_error","status_checked_at":"2026-03-01T22:41:51.863Z","response_time":124,"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":[],"created_at":"2024-11-10T00:16:07.107Z","updated_at":"2026-03-02T00:31:02.921Z","avatar_url":"https://github.com/mtulio.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"docker-services\n===============\n\nRole to build docker-compose files from many services.\n\nRequirements\n------------\n\n`docker-compose` is required to be installed before run the role. If you want only to generate compose files, it could be optional.\n\nRole Variables\n--------------\n\n```yaml\ndocker_services_workdir: /tmp\ndocker_services_group: default\ndocker_services_enabled: []      # the services to mount docker-compose file. It could be read from a var file and include dynamically.\ndocker_services_vars_path: ''\n\ndocker_compose_version: 3.4\ndocker_compose_file: \"{{ docker_services_workdir }}/docker-compose-{{ services_group }}.yml\"\n\n```\n\nExample Playbook\n----------------\n\n### Sample 01\n\nCreate a docker-compose file with Databases with these steps:\n1. create the service definition on path (as example bellow) `{{ playbook_dir }}/vars/docker-services/arangodb.yml`\n2. create any file dependencies (directories and files that should exists in the destination) - any of those the `files` option will resolve the dependencies\n3. Create the playbook as bellow:\n\n```yaml\n- name: Build Docker Compose for DBs Group\n  hosts: localhost\n  become: no\n\n  vars:\n    docker_services_workdir: /cloud\n    docker_compose_version: '3.4'\n    docker_services_group: dbs\n    docker_services_vars_path: \"{{ playbook_dir }}/vars/docker-services/\"\n    docker_compose_file: \"{{ docker_services_workdir }}/docker-compose-{{ docker_services_group }}.yml\"\n    docker_services_enabled:\n      - name: arangodb\n        files:\n          - src: \"{{ playbook_dir }}/files/docker-services/arangodb/conf\"\n            dest: \"{{ docker_services_workdir }}/arangodb/conf\"\n            type: directory\n          - dest: \"{{ docker_services_workdir }}/dbs/arangodb/apps\"\n            type: directory-present\n          - dest: \"{{ docker_services_workdir }}/dbs/arangodb/db\"\n            type: directory-present\n      - name: prometheus\n        files:\n          - src: \"{{ playbook_dir }}/files/docker-services/prometheus/\"\n            dest: \"{{ docker_services_workdir }}/prometheus\"\n            type: directory\n          - dest: \"{{ docker_services_workdir }}/dbs/arangodb\"\n            type: directory-present\n      - name: rdmysql\n        files:\n          - dest: \"{{ docker_services_workdir }}/dbs/mysql-rundeck\"\n            type: directory-present\n\n  roles:\n    - mtulio.docker-services\n```\n\nThe result will be the docker-compose file `/cloud/docker-compose-dbs.yml`\n\nLicense\n-------\n\nBSD\n\nAuthor Information\n------------------\n\nMarco Tulio R Braga.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtulio%2Fansible-role-docker-services","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtulio%2Fansible-role-docker-services","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtulio%2Fansible-role-docker-services/lists"}