{"id":15687843,"url":"https://github.com/orisano/composegen","last_synced_at":"2025-05-07T18:09:16.642Z","repository":{"id":64302370,"uuid":"248686465","full_name":"orisano/composegen","owner":"orisano","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-21T07:20:01.000Z","size":152,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T18:05:18.064Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/orisano.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,"zenodo":null}},"created_at":"2020-03-20T06:44:15.000Z","updated_at":"2025-04-21T07:20:04.000Z","dependencies_parsed_at":"2024-03-28T05:30:43.543Z","dependency_job_id":"16a0c3c5-47aa-46cd-8491-13c126823d5e","html_url":"https://github.com/orisano/composegen","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fcomposegen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fcomposegen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fcomposegen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fcomposegen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orisano","download_url":"https://codeload.github.com/orisano/composegen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252931533,"owners_count":21827111,"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":[],"created_at":"2024-10-03T17:51:19.878Z","updated_at":"2025-05-07T18:09:16.562Z","avatar_url":"https://github.com/orisano.png","language":"Go","readme":"# composegen\ncomposegen is a generator of docker-compose service.\n\n## Installation\n```\ngo get -u github.com/orisano/composegen\n```\n\n## Commands\n### db\ncomposegen db creates docker-compose service from URL syntax connection string.\n\n#### postgres\n```\n$ composegen db -url postgres://booktest:booktest@localhost/booktest\nversion: '3'\nservices:\n  postgres:\n    image: postgres:latest\n    environment:\n      POSTGRES_DB: booktest\n      POSTGRES_PASSWORD: booktest\n      POSTGRES_USER: booktest\n    ports:\n    - 5432:5432\n#   volumes:\n#   - ./sql:/docker-entrypoint-initdb.d:ro\n```\n\n#### mysql\n```\n$ composegen db -url mysql://booktest:booktest@localhost/booktest\nversion: '3'\nservices:\n  mysql:\n    image: mysql:latest\n    command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --long-query-time=0 --slow-query-log=ON --slow-query-log-file=slow.log\n    environment:\n      MYSQL_ALLOW_EMPTY_PASSWORD: yes\n      MYSQL_DATABASE: booktest\n      MYSQL_PASSWORD: booktest\n      MYSQL_USER: booktest\n    ports:\n    - \"3306:3306\"\n    cap_add:\n    - SYS_NICE\n#   volumes:\n#   - ./sql:/docker-entrypoint-initdb.d:ro\n```\n\n#### redis\n```\n$ composegen db -url redis://booktest:booktest@localhost/booktest\nversion: '3'\nservices:\n  redis:\n    image: redis:latest\n    command: --requirepass \"booktest\"\n    ports:\n    - 6379:6379\n```\n\n## Author\nNao Yonashiro (@orisano)\n\n## License\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forisano%2Fcomposegen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forisano%2Fcomposegen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forisano%2Fcomposegen/lists"}