Last active
May 7, 2024 18:52
-
-
Save TomMannson/fa66a46622ce80708682ccc8fd258327 to your computer and use it in GitHub Desktop.
This file contains 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=%i service with docker compose | |
PartOf=docker.service | |
After=docker.service | |
[Service] | |
Type=oneshot | |
RemainAfterExit=true | |
WorkingDirectory=/etc/docker/compose/%i | |
ExecStart=/usr/local/bin/docker compose up -d --remove-orphans --pull=always | |
ExecStop=/usr/local/bin/docker compose down | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment