webhook
This commit is contained in:
15
deploy/myansuran-webhook.service
Normal file
15
deploy/myansuran-webhook.service
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=myAnsuran git deploy webhook listener
|
||||
After=network.target docker.service
|
||||
Requires=docker.service
|
||||
|
||||
[Service]
|
||||
# User mesti ahli group 'docker' supaya boleh jalankan docker compose tanpa sudo.
|
||||
User=deploy
|
||||
WorkingDirectory=/opt/myansuran
|
||||
ExecStart=/usr/bin/webhook -hooks /opt/myansuran/deploy/hooks.json -port 9000 -verbose -hotreload
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user