Run uptime kuma
This commit is contained in:
parent
44c73acbfd
commit
5f42b05b0f
3 changed files with 21 additions and 0 deletions
|
@ -98,6 +98,9 @@ frontend https
|
||||||
acl host_git hdr(host) -i git.comfycamp.space
|
acl host_git hdr(host) -i git.comfycamp.space
|
||||||
use_backend forgejo if host_git
|
use_backend forgejo if host_git
|
||||||
|
|
||||||
|
acl host_uptime hdr(host) -i uptime.comfycamp.space
|
||||||
|
use_backend uptime_kuma if host_uptime
|
||||||
|
|
||||||
acl host_jellyfin hdr(host) -i jf.comfycamp.space
|
acl host_jellyfin hdr(host) -i jf.comfycamp.space
|
||||||
use_backend jellyfin if host_jellyfin
|
use_backend jellyfin if host_jellyfin
|
||||||
|
|
||||||
|
@ -218,3 +221,6 @@ backend freshrss
|
||||||
|
|
||||||
backend phoenix
|
backend phoenix
|
||||||
server s1 phoenix-1:8080 check
|
server s1 phoenix-1:8080 check
|
||||||
|
|
||||||
|
backend uptime_kuma
|
||||||
|
server s1 uptime-kuma-1:3001 check
|
||||||
|
|
|
@ -2,3 +2,4 @@
|
||||||
- import_tasks: grafana.yml
|
- import_tasks: grafana.yml
|
||||||
- import_tasks: prometheus.yml
|
- import_tasks: prometheus.yml
|
||||||
- import_tasks: postgresql.yml
|
- import_tasks: postgresql.yml
|
||||||
|
- import_tasks: uptime_kuma.yml
|
||||||
|
|
14
roles/monitoring/tasks/uptime_kuma.yml
Normal file
14
roles/monitoring/tasks/uptime_kuma.yml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
- name: Create uptime kuma volume
|
||||||
|
become: true
|
||||||
|
community.docker.docker_volume:
|
||||||
|
name: uptime-kuma
|
||||||
|
- name: Start uptime kuma container
|
||||||
|
become: true
|
||||||
|
community.docker.docker_container:
|
||||||
|
name: uptime-kuma-1
|
||||||
|
image: louislam/uptime-kuma:1.23.15
|
||||||
|
volumes:
|
||||||
|
- uptime-kuma:/app/data
|
||||||
|
networks:
|
||||||
|
- name: haproxy
|
||||||
|
restart_policy: unless-stopped
|
Loading…
Reference in a new issue