Created
June 29, 2024 21:03
-
-
Save xanarin/8acaedec209ca204fdf24d576c166ec5 to your computer and use it in GitHub Desktop.
Reliable systemd unit for docker-compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Docker service testing facility | |
After=network.target docker.service | |
[Service] | |
Restart=always | |
WorkingDirectory=/srv/tester | |
SyslogIdentifier=%i | |
ExecStart=/usr/bin/docker-compose up --no-color | |
ExecStopPost=/usr/bin/docker-compose rm -f | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment