From d207e4ebaf63f0f01b53fa449834e0e2331f9724 Mon Sep 17 00:00:00 2001 From: Matthew McKinnon Date: Wed, 28 May 2025 22:17:07 +1000 Subject: [PATCH] chore: add gotify & uptime-kume to cloud - vps02 --- main.yml | 8 ++++++++ tasks/gotify.yml | 26 ++++++++++++++++++++++++++ tasks/uptimekuma.yml | 27 +++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 tasks/gotify.yml create mode 100644 tasks/uptimekuma.yml diff --git a/main.yml b/main.yml index 6103e26..036926e 100644 --- a/main.yml +++ b/main.yml @@ -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 diff --git a/tasks/gotify.yml b/tasks/gotify.yml new file mode 100644 index 0000000..6053144 --- /dev/null +++ b/tasks/gotify.yml @@ -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" diff --git a/tasks/uptimekuma.yml b/tasks/uptimekuma.yml new file mode 100644 index 0000000..c3c7197 --- /dev/null +++ b/tasks/uptimekuma.yml @@ -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"