Initial commit - Uptime kuma
This commit is contained in:
commit
50a0859318
9 changed files with 109 additions and 0 deletions
24
files/uptime-kuma.service
Normal file
24
files/uptime-kuma.service
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
[Unit]
|
||||
Description=Uptime Kuma (uptime for short) service
|
||||
After=docker.service
|
||||
PartOf=docker.service
|
||||
Requires=docker.service
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/srv/uptime-kuma
|
||||
|
||||
User=root
|
||||
Group=root
|
||||
|
||||
Restart=always
|
||||
RestartSec=15s
|
||||
|
||||
# Clean up after crashes
|
||||
ExecStartPre=-/usr/bin/docker rm -f uptime-kuma
|
||||
|
||||
ExecStart=/usr/bin/docker run --name uptime-kuma --rm -v /srv/uptime-kuma/data:/app/data -p 3001:3001 louislam/uptime-kuma:1
|
||||
|
||||
ExecStop=/usr/bin/docker stop uptime-kuma
|
||||
|
||||
[Install]
|
||||
WantedBy=docker.service
|
||||
Reference in a new issue