forked from venetoarpa/Arpav-PPCV-backend
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added sample systemd unit files for deployment
- Loading branch information
1 parent
09eed3e
commit 6b18e98
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[Unit] | ||
Description="Clean up docker images" | ||
|
||
[Service] | ||
Type=simple | ||
ExecStart=/usr/bin/docker system prune --all --force | ||
User={CHANGE_ME} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Unit] | ||
Description="Timer for the clean-docker-images service" | ||
|
||
[Timer] | ||
Unit=clean-docker-images.service | ||
OnCalendar=Sun *-*-* 01:00:00 | ||
Persistent=true | ||
|
||
[Install] | ||
WantedBy=timers.target |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# systemd service file for the webhook server | ||
# - Create the `/etc/systemd/system/webhook.service` file with these contents | ||
# - Run `sudo systemctl daemon-relaod` | ||
# - Finally run sudo systemctl start webhook.conf | ||
|
||
[Service] | ||
Environment="WEBHOOK_SECRET={CHANGE_ME}" | ||
ExecStart=/usr/bin/webhook -template -port {CHANGE_ME} -hooks {CHANGE_ME} | ||
User={CHANGE_ME} | ||
Group={CHANGE_ME} |