mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
Uptime Kuma
This commit is contained in:
@@ -84,6 +84,14 @@
|
|||||||
file:
|
file:
|
||||||
path: /var/opt/matrix-sed
|
path: /var/opt/matrix-sed
|
||||||
state: directory
|
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
|
# - name: install linux-system-roles
|
||||||
|
|||||||
@@ -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.siteMonitor=https://jade.ellis.link/"
|
||||||
Label="homepage.description=My personal website!"
|
Label="homepage.description=My personal website!"
|
||||||
|
|
||||||
|
Label=kuma.__web='"jade.ellis.link"'
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
TimeoutStartSec=900
|
TimeoutStartSec=900
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user