Releases: andreaskoch/dcsg
Improved systemd reliability
Improved the restart reliability of docker projects by improving the systemd service template (thanks to @Hermsi1337).
see: #6
Timeout and Restart Policies
@Hermsi1337 added a timeout and restart policies to the systemd service template.
Closes andreaskoch/dscg#4
systemd service improvements
- Pull images before starting
- Stop the containers before removing them
Thanks to @Hermsi1337
Set Systemd Working Directory
This version sets the WorkingDirectory
in the systemd service files because otherwise docker-compose messes up the paths for the env_file.
https://www.freedesktop.org/software/systemd/man/systemd.exec.html
https://docs.docker.com/compose/compose-file/#/envfile
The Prototype
A first working version of dcsg. A systemd service generator for Docker Compose projects.
Usage
Install
Register a Docker Compose project as a systemd service:
dcsg install <path-to-a-docker-compose.yml> <optional-project-name>
The install action will create a systemd service in /etc/systemd/system/<project-name>.service
and enable that service.
Uninstall
Uninstall the systemd service for the given Docker Compose project:
dscg uninstall <path-to-a-docker-compose.yml> <optional-project-name>
The uninstall action will disable the service <project-name>.service
and remove the systemd service from /etc/systemd/system/<project-name>.service
.