{"id":13582239,"url":"https://github.com/andreaskoch/dcsg","last_synced_at":"2025-04-14T00:16:37.797Z","repository":{"id":140297642,"uuid":"76775629","full_name":"andreaskoch/dcsg","owner":"andreaskoch","description":"dcsg is a command-line utility for Linux that generates systemd services for Docker Compose projects","archived":false,"fork":false,"pushed_at":"2020-01-28T18:01:31.000Z","size":453,"stargazers_count":184,"open_issues_count":5,"forks_count":13,"subscribers_count":10,"default_branch":"develop","last_synced_at":"2025-03-27T14:21:13.973Z","etag":null,"topics":["dcsg","docker-compose","linux","systemd-service"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andreaskoch.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2016-12-18T10:08:32.000Z","updated_at":"2024-09-27T11:45:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"785d40c8-1126-4aac-9e43-bb1b1e0d0f11","html_url":"https://github.com/andreaskoch/dcsg","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreaskoch%2Fdcsg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreaskoch%2Fdcsg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreaskoch%2Fdcsg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreaskoch%2Fdcsg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreaskoch","download_url":"https://codeload.github.com/andreaskoch/dcsg/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248199136,"owners_count":21063641,"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":["dcsg","docker-compose","linux","systemd-service"],"created_at":"2024-08-01T15:02:31.253Z","updated_at":"2025-04-14T00:16:37.774Z","avatar_url":"https://github.com/andreaskoch.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# dcsg: A systemd service generator for docker-compose\n\ndcsg is a command-line utility for Linux that generates systemd services for Docker Compose projects.\n\nIf you have one or more docker compose projects running on your server you might want **create a systemd service** for each of them.\n\nAnd **dcsg** is here to help you with just that. Quickly create systemd services from docker-compose files.\n\n![Animation: Using dcsg on a docker-compose project](files/animation-dcsg-usage-example.gif)\n\n## Usage\n\n`dcsg \u003caction\u003e [\u003cpath-to-a-docker-compose-file\u003e] [\u003cdocker-compose-project-name]\u003e`\n\n### Install\n\nRegister a Docker Compose project as a systemd service:\n\n```bash\ndcsg install docker-compose.yml\n```\n\n### Uninstall\n\nUninstall the systemd service for the given Docker Compose project:\n\n```bash\ndcsg uninstall docker-compose.yml\n```\n\n### Help\n\nShow the available actions and arguments:\n\n```bash\ndcsg help\n```\n\nThe help for a specific action:\n\n```bash\ndcsg install --help\n```\n\n## What does dcsg do?\n\n**dcsg** doesn't do much.\n\nFor the `install` action **dcsg** creates a systemd service (see: [installer.go](installer.go)):\n\n1. Create a systemd service definition in `/etc/systemd/system/\u003cproject-name\u003e.service`\n2. Execute systemctl `daemon-reload`, `enable` and `start`\n\nThe name of the service created will be the project name of your docker-compose project.\n\nFor the `uninstall` action **dcsg** remove the systemd service it created earlier (see: [uninstaller.go](uninstaller.go)):\n\n1. Execute a systemctl `stop` and `disable` for the docker-compose service\n2. Delete the systemd service definition from `/etc/systemd/system/\u003cproject-name\u003e.service`\n3. Execute sytemctl `daemon-reload`\n\n## Download\n\nYou can download pre-built binaries for Linux (64bit, ARM 5, ARM 6 and ARM 7) from [github.com » andreaskoch » dcsg » releases](/releases/latest):\n\n- [Download for dcsg (Linux 64bit)](https://github.com/andreaskoch/dcsg/releases/download/v0.4.0/dcsg_linux_amd64)\n- [Download for dcsg (Linux ARM5)](https://github.com/andreaskoch/dcsg/releases/download/v0.4.0/dcsg_linux_arm5)\n- [Download for dcsg (Linux ARM6)](https://github.com/andreaskoch/dcsg/releases/download/v0.4.0/dcsg_linux_arm6)\n- [Download for dcsg (Linux ARM7)](https://github.com/andreaskoch/dcsg/releases/download/v0.4.0/dcsg_linux_arm7)\n\n```bash\ncurl -L https://github.com/andreaskoch/dcsg/releases/download/v0.4.0/dcsg_linux_amd64 \u003e /usr/local/bin/dcsg\nchmod +x /usr/local/bin/dcsg\n```\n\n\n## Build\n\nIf you have go installed you can use `go get` to fetch and build **dcsg**:\n\n```bash\ngo get github.com/andreaskoch/dcsg\n```\n\nTo **cross-compile dcsg** for the different Linux architectures (AMD64, ARM5, ARM6 and ARM7) you can use the `crosscompile` action of the make script:\n\n```bash\ngo get github.com/andreaskoch/dcsg\ncd $GOPATH/github.com/andreaskoch/dcsg\nmake crosscompile\n```\n\n## Licensing\n\n»dcsg« is licensed under the **Apache License, Version 2.0**. See [LICENSE](LICENSE) for the full license text.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreaskoch%2Fdcsg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreaskoch%2Fdcsg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreaskoch%2Fdcsg/lists"}