chore: add gotify & uptime-kume to cloud - vps02
All checks were successful
Deploy / Prepare Build (push) Successful in 52s
All checks were successful
Deploy / Prepare Build (push) Successful in 52s
This commit is contained in:
8
main.yml
8
main.yml
@ -41,6 +41,14 @@
|
|||||||
- name: Deploy gitea
|
- name: Deploy gitea
|
||||||
import_tasks: tasks/gitea.yml
|
import_tasks: tasks/gitea.yml
|
||||||
tags: gitea_install
|
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
|
tags: cloud_install
|
||||||
|
|
||||||
- hosts: docker
|
- hosts: docker
|
||||||
|
26
tasks/gotify.yml
Normal file
26
tasks/gotify.yml
Normal 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
27
tasks/uptimekuma.yml
Normal 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"
|
Reference in New Issue
Block a user