All Projects → andreaskoch → Dcsg

andreaskoch / Dcsg

Licence: apache-2.0
dcsg is a command-line utility for Linux that generates systemd services for Docker Compose projects

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Dcsg

Docker Postfix
Simple SMTP server / postfix null relay host for your Docker and Kubernetes containers. Based on Alpine Linux.
Stars: ✭ 163 (-13.3%)
Mutual labels:  docker-compose
Dockercon19
DockerCon "Docker for Node.js" examples
Stars: ✭ 176 (-6.38%)
Mutual labels:  docker-compose
Train Ticket
Train Ticket - A Benchmark Microservice System
Stars: ✭ 180 (-4.26%)
Mutual labels:  docker-compose
Microservices Sample
Sample project to create an application using microservices architecture
Stars: ✭ 167 (-11.17%)
Mutual labels:  docker-compose
Docker Compose Development
Clone and `bin/dev up`. Quickly start of developing locally with Nginx, PHP, Blackfire, Percona, Mailhog and Redis. Out of the box support for Magento2 Developer Box
Stars: ✭ 171 (-9.04%)
Mutual labels:  docker-compose
Taiga
docker-compose.yml for simple taiga setup
Stars: ✭ 178 (-5.32%)
Mutual labels:  docker-compose
Docker Flask Celery Redis
Docker-Compose template for orchestrating a Flask app with a Celery queue using Redis
Stars: ✭ 165 (-12.23%)
Mutual labels:  docker-compose
Weibospider
This is a sina weibo spider built by scrapy [微博爬虫/持续维护]
Stars: ✭ 2,408 (+1180.85%)
Mutual labels:  docker-compose
Talkyard Prod One
Talkyard production installation on one single server.
Stars: ✭ 173 (-7.98%)
Mutual labels:  docker-compose
Nodedock
📦🚢 Docker Node.js development environment
Stars: ✭ 180 (-4.26%)
Mutual labels:  docker-compose
Sbt Docker Compose
Integrates Docker Compose functionality into sbt
Stars: ✭ 168 (-10.64%)
Mutual labels:  docker-compose
Swarmpit
Lightweight mobile-friendly Docker Swarm management UI
Stars: ✭ 2,255 (+1099.47%)
Mutual labels:  docker-compose
Yii2 fecshop docker
使用docker compose 快速的安装fecshop的环境,包括mysql php(含扩展),mongodb,mysql,redis,xunsearch等
Stars: ✭ 178 (-5.32%)
Mutual labels:  docker-compose
Devicemanager.api
Web API Framework demonstrates scalable, multitenant, architecture and allows building its own solution in the minutes. Uses: Entity Framework, UnitOfWork, Repository patterns. Wrapped in Docker, Kubernetes
Stars: ✭ 168 (-10.64%)
Mutual labels:  docker-compose
Dockerspec
A small Ruby Gem to run RSpec and Serverspec, Infrataster and Capybara tests against Dockerfiles or Docker images easily.
Stars: ✭ 181 (-3.72%)
Mutual labels:  docker-compose
Docker S3 Volume
Docker container with a data volume from s3.
Stars: ✭ 166 (-11.7%)
Mutual labels:  docker-compose
Lifeboat
Docker Compose UI: Lifeboat is an easy way to launch projects with a graphical interface
Stars: ✭ 176 (-6.38%)
Mutual labels:  docker-compose
Goxygen
Generate a modern Web project with Go and Angular, React or Vue in seconds 🚀
Stars: ✭ 2,318 (+1132.98%)
Mutual labels:  docker-compose
Lumen Microservice
Lumen on Docker - Skeleton project with Nginx, MySQL & PHP 7 | Aws ECS, Google Kubernates, Azure Container Engine
Stars: ✭ 183 (-2.66%)
Mutual labels:  docker-compose
Nginx Proxy Automation
Automated docker nginx proxy integrated with letsencrypt.
Stars: ✭ 2,302 (+1124.47%)
Mutual labels:  docker-compose

dcsg: A systemd service generator for docker-compose

dcsg is a command-line utility for Linux that generates systemd services for Docker Compose projects.

If you have one or more docker compose projects running on your server you might want create a systemd service for each of them.

And dcsg is here to help you with just that. Quickly create systemd services from docker-compose files.

Animation: Using dcsg on a docker-compose project

Usage

dcsg <action> [<path-to-a-docker-compose-file>] [<docker-compose-project-name]>

Install

Register a Docker Compose project as a systemd service:

dcsg install docker-compose.yml

Uninstall

Uninstall the systemd service for the given Docker Compose project:

dcsg uninstall docker-compose.yml

Help

Show the available actions and arguments:

dcsg help

The help for a specific action:

dcsg install --help

What does dcsg do?

dcsg doesn't do much.

For the install action dcsg creates a systemd service (see: installer.go):

  1. Create a systemd service definition in /etc/systemd/system/<project-name>.service
  2. Execute systemctl daemon-reload, enable and start

The name of the service created will be the project name of your docker-compose project.

For the uninstall action dcsg remove the systemd service it created earlier (see: uninstaller.go):

  1. Execute a systemctl stop and disable for the docker-compose service
  2. Delete the systemd service definition from /etc/systemd/system/<project-name>.service
  3. Execute sytemctl daemon-reload

Download

You can download pre-built binaries for Linux (64bit, ARM 5, ARM 6 and ARM 7) from github.com » andreaskoch » dcsg » releases:

curl -L https://github.com/andreaskoch/dcsg/releases/download/v0.4.0/dcsg_linux_amd64 > /usr/local/bin/dcsg
chmod +x /usr/local/bin/dcsg

Build

If you have go installed you can use go get to fetch and build dcsg:

go get github.com/andreaskoch/dcsg

To cross-compile dcsg for the different Linux architectures (AMD64, ARM5, ARM6 and ARM7) you can use the crosscompile action of the make script:

go get github.com/andreaskoch/dcsg
cd $GOPATH/github.com/andreaskoch/dcsg
make crosscompile

Licensing

»dcsg« is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].