Uptime Kuma
This commit is contained in:
parent
f24e84145b
commit
2dbbb6b295
4 changed files with 112 additions and 0 deletions
|
|
@ -84,6 +84,14 @@
|
|||
file:
|
||||
path: /var/opt/matrix-sed
|
||||
state: directory
|
||||
- name: Creates uptime-kuma state directory
|
||||
file:
|
||||
path: /var/opt/uptime-kuma
|
||||
state: directory
|
||||
- name: Creates autokuma state directory
|
||||
file:
|
||||
path: /var/opt/autokuma
|
||||
state: directory
|
||||
|
||||
|
||||
# - name: install linux-system-roles
|
||||
|
|
|
|||
52
servers/containers/autokuma.container
Normal file
52
servers/containers/autokuma.container
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
|
||||
|
||||
|
||||
[Unit]
|
||||
Description=AutoKuma
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Container]
|
||||
ContainerName=autokuma
|
||||
NoNewPrivileges=true
|
||||
Image=ghcr.io/bigboot/autokuma:latest
|
||||
# ReadOnly=true
|
||||
Volume=/var/opt/autokuma:/data:z,U
|
||||
Volume=/run/podman/podman.sock:/var/run/docker.sock:z
|
||||
AutoUpdate=registry
|
||||
Network=web.network
|
||||
|
||||
Label="traefik.enable=false"
|
||||
|
||||
Environment=AUTOKUMA__KUMA__URL=https://uptime-kuma.ellis.link
|
||||
Environment="AUTOKUMA__KUMA__USERNAME=jade"
|
||||
Environment="AUTOKUMA__KUMA__PASSWORD=N3oPQ8aJ8rYh0PKTI6O0Kwz5GNIBy31Uhusy"
|
||||
Environment=AUTOKUMA__DOCKER__HOSTS=unix:///var/run/docker.sock
|
||||
Environment=AUTOKUMA__SNIPPETS__WEB='\
|
||||
{{ container_name }}_http.http.name: {{ container_name }} HTTP\n\
|
||||
{{ container_name }}_http.http.url: https://{{ args[0] }}{% if args[1] %}:{{ args[1] }}{% endif %}\n\
|
||||
{{ container_name }}_docker.docker.name: {{ container_name }} Docker\n\
|
||||
{{ container_name }}_docker.docker.docker_container: {{ container_name }}\n\
|
||||
{{ container_name }}_docker.docker.docker_host: 1'
|
||||
|
||||
Label="homepage.group=Services"
|
||||
Label="homepage.name=AutoKuma"
|
||||
Label="homepage.description=Configure uptime monitoring"
|
||||
|
||||
|
||||
|
||||
StopTimeout=10
|
||||
|
||||
[Service]
|
||||
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
TimeoutStopSec=2m
|
||||
TimeoutStartSec=2m
|
||||
|
||||
# StartLimitInterval=1m
|
||||
StartLimitBurst=5
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
|
@ -41,6 +41,8 @@ Label="homepage.href=https://jade.ellis.link/"
|
|||
Label="homepage.siteMonitor=https://jade.ellis.link/"
|
||||
Label="homepage.description=My personal website!"
|
||||
|
||||
Label=kuma.__web='"jade.ellis.link"'
|
||||
|
||||
[Service]
|
||||
Restart=on-failure
|
||||
TimeoutStartSec=900
|
||||
|
|
|
|||
50
servers/containers/uptime-kuma.container
Normal file
50
servers/containers/uptime-kuma.container
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
|
||||
|
||||
|
||||
[Unit]
|
||||
Description=Uptime Kuma
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Container]
|
||||
ContainerName=uptime-kuma
|
||||
NoNewPrivileges=true
|
||||
Image=docker.io/louislam/uptime-kuma:1
|
||||
# ReadOnly=true
|
||||
Volume=/var/opt/uptime-kuma:/app/data:z,U
|
||||
Volume=/run/podman/podman.sock:/var/run/docker.sock:z
|
||||
AutoUpdate=registry
|
||||
Network=web.network
|
||||
|
||||
Label="traefik.enable=true"
|
||||
Label="traefik.http.routers.uptime-kuma.rule=Host(`uptime-kuma.ellis.link`)"
|
||||
Label="traefik.http.services.uptime-kuma.loadbalancer.server.port=3001"
|
||||
|
||||
Label="traefik.http.routers.uptime-kuma.entrypoints=https"
|
||||
|
||||
Label="traefik.http.routers.uptime-kuma.middlewares=default@file"
|
||||
|
||||
Label="homepage.group=Public"
|
||||
Label="homepage.name=Uptime Kuma"
|
||||
Label="homepage.href=https://uptime-kuma.ellis.link"
|
||||
Label="homepage.siteMonitor=https://uptime-kuma.ellis.link"
|
||||
Label="homepage.description=Uptime monitoring"
|
||||
|
||||
# Label="kuma.uptime-kuma.http.name=Uptime Kuma"
|
||||
Label=kuma.__web='"uptime-kuma.ellis.link"'
|
||||
|
||||
StopTimeout=100
|
||||
|
||||
[Service]
|
||||
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
TimeoutStopSec=2m
|
||||
TimeoutStartSec=2m
|
||||
|
||||
# StartLimitInterval=1m
|
||||
StartLimitBurst=5
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Loading…
Add table
Reference in a new issue