feat: add personal uptime kuma instance at uptime.debyl.io
- Add uptime-kuma-personal container on port 3002 - Add Caddy config for uptime.debyl.io with IP restriction - Update both uptime-kuma instances to 2.0.2 - Rename debyltech tag from uptime-kuma to uptime-debyltech Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
38
ansible/roles/podman/tasks/containers/home/uptime-kuma.yml
Normal file
38
ansible/roles/podman/tasks/containers/home/uptime-kuma.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
---
|
||||
- name: create uptime-kuma-personal host directory volumes
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
owner: "{{ podman_user }}"
|
||||
group: "{{ podman_user }}"
|
||||
mode: 0755
|
||||
notify: restorecon podman
|
||||
loop:
|
||||
- "{{ uptime_kuma_personal_path }}/data"
|
||||
|
||||
- name: flush handlers
|
||||
ansible.builtin.meta: flush_handlers
|
||||
|
||||
- import_tasks: podman/podman-check.yml
|
||||
vars:
|
||||
container_name: uptime-kuma-personal
|
||||
container_image: "{{ image }}"
|
||||
|
||||
- name: create uptime-kuma-personal container
|
||||
become: true
|
||||
become_user: "{{ podman_user }}"
|
||||
containers.podman.podman_container:
|
||||
name: uptime-kuma-personal
|
||||
image: "{{ image }}"
|
||||
restart_policy: on-failure:3
|
||||
log_driver: journald
|
||||
volumes:
|
||||
- "{{ uptime_kuma_personal_path }}/data:/app/data"
|
||||
ports:
|
||||
- "3002:3001/tcp"
|
||||
|
||||
- name: create systemd startup job for uptime-kuma-personal
|
||||
include_tasks: podman/systemd-generate.yml
|
||||
vars:
|
||||
container_name: uptime-kuma-personal
|
||||
Reference in New Issue
Block a user