-
-
Save 0x2a94b5/b88e3afa273d5f1f133ac20a5eb25454 to your computer and use it in GitHub Desktop.
Add caddy doker-compose as a systemd unit
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=Caddy | |
Documentation=https://caddyserver.com/docs/ | |
After=network.target | |
[Service] | |
Type=oneshot | |
RemainAfterExit=true | |
ExecStart=/usr/local/bin/docker-compose -f /home/user/caddy/docker-compose.yml up -d | |
ExecStop=/usr/local/bin/docker-compose -f /home/user/caddy/docker-compose.yml down | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment