chore: add gotify & uptime-kume to cloud - vps02
All checks were successful
Deploy / Prepare Build (push) Successful in 52s

This commit is contained in:
2025-05-28 22:17:07 +10:00
parent 42fbd5f60c
commit d207e4ebaf
3 changed files with 61 additions and 0 deletions

View File

@ -41,6 +41,14 @@
- name: Deploy gitea
import_tasks: tasks/gitea.yml
tags: gitea_install
- name: Uptime-kuma
import_tasks: tasks/uptimekuma.yml
tags: uptimekuma_install
- name: Gotify
import_tasks: tasks/gotify.yml
tags: gotify_install
tags: cloud_install
- hosts: docker

26
tasks/gotify.yml Normal file
View File

@ -0,0 +1,26 @@
---
- name: Create directories
file:
path: "{{ item }}"
state: directory
with_items:
- "{{ data_folder }}/gotify"
- "{{ data_folder }}/gotify/data"
- name: Create the gotify container
docker_container:
name: gotify
image: gotify/server:2.6.3
restart_policy: unless-stopped
recreate: true
networks:
- name: proxy
volumes:
- /data/gotify/data:/app/data
labels:
traefik.enable: "true"
traefik.http.routers.gotify.rule: "Host(`gotify.comprofix.com`)"
traefik.http.routers.gotify.entrypoints: "https"
traefik.http.routers.gotify.tls: "true"
traefik.http.routers.gotify.service: "gotify"
traefik.http.services.gotify.loadbalancer.server.port: "80"

27
tasks/uptimekuma.yml Normal file
View File

@ -0,0 +1,27 @@
---
- name: Create directories
file:
path: "{{ item }}"
state: directory
with_items:
- "{{ data_folder }}/uptime-kuma"
- "{{ data_folder }}/uptime-kuma/data"
- name: Create the uptimekuma container
docker_container:
name: uptime-kuma
image: louislam/uptime-kuma:1.23.16
restart_policy: unless-stopped
recreate: true
networks:
- name: proxy
volumes:
- /data/uptime-kuma/data:/app/data
- /var/run/docker.sock:/var/run/docker.sock
labels:
traefik.enable: "true"
traefik.http.routers.uptime.rule: "Host(`uptime.comprofix.com`)"
traefik.http.routers.uptime.entrypoints: "https"
traefik.http.routers.uptime.tls: "true"
traefik.http.services.uptime.loadbalancer.server.port: "3001"
traefik.http.services.uptime.loadbalancer.server.scheme: "http"