{"id":30499849,"url":"https://github.com/hadialqattan/go-compose","last_synced_at":"2026-04-18T19:32:56.125Z","repository":{"id":57709535,"uuid":"304661948","full_name":"hadialqattan/go-compose","owner":"hadialqattan","description":"A lightweight services composer written in Golang for managing services (processes) in a development environment.","archived":false,"fork":false,"pushed_at":"2020-10-28T16:18:18.000Z","size":144,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-25T08:13:53.989Z","etag":null,"topics":["cli","compose","docker-compose","go","golang","goroutines","process-management"],"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/hadialqattan.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}},"created_at":"2020-10-16T15:09:48.000Z","updated_at":"2023-05-12T19:48:32.000Z","dependencies_parsed_at":"2022-09-12T22:40:38.224Z","dependency_job_id":null,"html_url":"https://github.com/hadialqattan/go-compose","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hadialqattan/go-compose","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadialqattan%2Fgo-compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadialqattan%2Fgo-compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadialqattan%2Fgo-compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadialqattan%2Fgo-compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hadialqattan","download_url":"https://codeload.github.com/hadialqattan/go-compose/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadialqattan%2Fgo-compose/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31982694,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T17:30:12.329Z","status":"ssl_error","status_checked_at":"2026-04-18T17:29:59.069Z","response_time":103,"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":["cli","compose","docker-compose","go","golang","goroutines","process-management"],"created_at":"2025-08-25T07:18:30.780Z","updated_at":"2026-04-18T19:32:56.105Z","avatar_url":"https://github.com/hadialqattan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Compose\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/carbon.png\" alt=\"go-compose carbon image\"\u003e\n\u003c/p\u003e\n\nA lightweight services composer written in Golang for managing services (processes) in a development environment.\n\n***\n## Installation\n\n```bash\n$ go get github.com/hadialqattan/go-compose\n```\n\n## Usage\n\n```bash\n$ go-compose start # --config path/to/go-compose.yaml [default=./go-compose.yaml].\n```\n\n## `go-compose.yaml`\n\n```yaml\nservices:\n  service_name:\n    ignore_failures: false\n    sub_service: false\n    auto_restart: true\n    hooks:\n        wait: \n            - another_service_name\n        stop:\n            - another_service_name\n        start:\n            - another_service_name\n    cwd: .\n    command: echo \"shell script\"\n    environs:\n      ENVIRONMENT_VARIABLE: true\n```\n\n* `services`: a set of services to run.\n* `ignore_failures`: don't stop other services when this failed.\n* `sub_service`: don't start this service. this may be started by another service using the `start hook`.\n* `auto_restart`: automatically restart this service if it crashed.\n* `hooks`:\n    + `wait`: wait for other services to stop before starting (setup).\n    + `stop`: stop other services on exit (teardown).\n    + `start`: start other services/sub-services on exit (teardown).\n* `cwd`: where the command will be executed (Command Work Directory).\n* `command`: a unix shell command.\n* `environs`: environment variables.\n\n\u003cdetails\u003e\n    \u003csummary\u003e A real world example \u003c/summary\u003e\n\n```yaml\nservices:\n\n  webapp:\n    ignore_failures: true\n    auto_restart: true\n    hooks:\n      start:\n        - cleanup\n    cwd: .\n    command: |\n      docker build .\n      docker run --rm \\\n        --name webapp \\\n        --link db \\\n        -v ${PWD}:/webapp -w /webapp webapp\n    environs:\n      - POSTGRES_USER=webapp_admin\n      - POSTGRES_PASSWORD=db0123\n      - POSTGRES_DB=db\n\n  postgres_db:\n    ignore_failures: true\n    auto_restart: true\n    cwd: .\n    command: |\n      sleep 3\n      docker run --rm \\\n        --name db postgres:12.0-alpine\n    environs:\n      - POSTGRES_USER=webapp_admin\n      - POSTGRES_PASSWORD=db0123\n      - POSTGRES_DB=db\n\n  cleanup:\n    sub_service: true\n    cwd: .\n    command: python3 teardown.py\n```\n\n\u003c/details\u003e\n\n***\n## Copyright ©\n\n👤 **Hadi Alqattan**\n\n* Github: [@hadialqattan](https://github.com/hadialqattan)\n* Email: [alqattanhadizaki@gmail.com](\u003cmailto:alqattanhadizaki@gmail.com\u003e)\n\n📝 **License**\n\nCopyright © 2020 [Hadi Alqattan](https://github.com/hadialqattan).\u003cbr /\u003e\nThis project is [MIT](https://github.com/hadialqattan/go-compose/blob/master/LICENSE) licensed.\n\n***\nGive a ⭐️ if this project helped you!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadialqattan%2Fgo-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhadialqattan%2Fgo-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadialqattan%2Fgo-compose/lists"}