mirror of
https://github.com/ncarlier/webhookd.git
synced 2025-04-06 09:51:21 +00:00
feat: Add unit file.
This commit is contained in:
parent
b81e8ab1b7
commit
8978ddf4f4
14
etc/units/webhookd@.service
Normal file
14
etc/units/webhookd@.service
Normal file
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=Webkookd Server
|
||||
After=docker.service
|
||||
Requires=docker.service
|
||||
|
||||
[Service]
|
||||
ExecStartPre=-/usr/bin/docker pull ncarlier/webhookd:latest
|
||||
ExecStartPre=-/usr/bin/docker kill %p
|
||||
ExecStartPre=-/usr/bin/docker rm %p
|
||||
ExecStart=/usr/bin/docker run --rm --name %p -v /var/run/docker.sock:/var/run/docker.sock -v /media/data/webhookd/deploy_rsa:/root/.ssh/id_rsa --env-file /media/data/webhookd/env.conf -P ncarlier/webhookd
|
||||
ExecStop=/usr/bin/docker stop %p
|
||||
|
||||
[X-Fleet]
|
||||
X-Conflicts=%p@*.service
|
Loading…
Reference in New Issue
Block a user