updates for gregtime, caddyfile, added uptime-kuma
This commit is contained in:
@@ -7,12 +7,14 @@ debyltech_path: "{{ podman_volumes }}/debyltech"
|
||||
# drone_path: removed - Drone CI decommissioned
|
||||
factorio_path: "{{ podman_volumes }}/factorio"
|
||||
fulfillr_path: "{{ podman_volumes }}/fulfillr"
|
||||
gregtime_path: "{{ podman_volumes }}/gregtime"
|
||||
hass_path: "{{ podman_volumes }}/hass"
|
||||
# nginx_path: removed - nginx no longer used
|
||||
nosql_path: "{{ podman_volumes }}/nosql"
|
||||
partkeepr_path: "{{ podman_volumes }}/partkeepr"
|
||||
partsy_path: "{{ podman_volumes }}/partsy"
|
||||
photos_path: "{{ podman_volumes }}/photos"
|
||||
uptime_kuma_path: "{{ podman_volumes }}/uptime-kuma"
|
||||
pihole_path: "{{ podman_volumes }}/pihole"
|
||||
sshpass_cron_path: "{{ podman_volumes }}/sshpass_cron"
|
||||
caddy_path: "{{ podman_volumes }}/caddy"
|
||||
@@ -29,6 +31,7 @@ cloud_server_name: cloud.bdebyl.net
|
||||
cloud_skudak_server_name: cloud.skudakrennsport.com
|
||||
fulfillr_server_name: fulfillr.debyltech.com
|
||||
home_server_name: home.bdebyl.net
|
||||
uptime_kuma_server_name: uptime.debyltech.com
|
||||
parts_server_name: parts.bdebyl.net
|
||||
photos_server_name: photos.bdebyl.net
|
||||
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
---
|
||||
- name: create uptime-kuma 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_path }}/data"
|
||||
|
||||
- name: flush handlers
|
||||
ansible.builtin.meta: flush_handlers
|
||||
|
||||
- import_tasks: podman/podman-check.yml
|
||||
vars:
|
||||
container_name: uptime-kuma
|
||||
container_image: "{{ image }}"
|
||||
|
||||
- name: create uptime-kuma container
|
||||
become: true
|
||||
become_user: "{{ podman_user }}"
|
||||
containers.podman.podman_container:
|
||||
name: uptime-kuma
|
||||
image: "{{ image }}"
|
||||
restart_policy: on-failure:3
|
||||
log_driver: journald
|
||||
volumes:
|
||||
- "{{ uptime_kuma_path }}/data:/app/data"
|
||||
ports:
|
||||
- "3001:3001/tcp"
|
||||
|
||||
- name: create systemd startup job for uptime-kuma
|
||||
include_tasks: podman/systemd-generate.yml
|
||||
vars:
|
||||
container_name: uptime-kuma
|
||||
45
ansible/roles/podman/tasks/containers/home/gregtime.yml
Normal file
45
ansible/roles/podman/tasks/containers/home/gregtime.yml
Normal file
@@ -0,0 +1,45 @@
|
||||
---
|
||||
- name: create gregtime host directory volumes
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
owner: "{{ podman_subuid.stdout }}"
|
||||
group: "{{ podman_user }}"
|
||||
mode: 0755
|
||||
notify: restorecon podman
|
||||
loop:
|
||||
- "{{ gregtime_path }}/logs"
|
||||
|
||||
- name: unshare chown the gregtime log volume
|
||||
become: true
|
||||
become_user: "{{ podman_user }}"
|
||||
changed_when: false
|
||||
ansible.builtin.command: |
|
||||
podman unshare chown -R 1000:1000 {{ gregtime_path }}/logs
|
||||
|
||||
- name: flush handlers
|
||||
ansible.builtin.meta: flush_handlers
|
||||
|
||||
- import_tasks: podman/podman-check.yml
|
||||
vars:
|
||||
container_name: gregtime
|
||||
container_image: "{{ image }}"
|
||||
|
||||
- name: create gregtime container
|
||||
become: true
|
||||
become_user: "{{ podman_user }}"
|
||||
containers.podman.podman_container:
|
||||
name: gregtime
|
||||
image: "{{ image }}"
|
||||
restart_policy: on-failure:3
|
||||
log_driver: journald
|
||||
env:
|
||||
TZ: America/New_York
|
||||
volumes:
|
||||
- "{{ gregtime_path }}/logs:/app/logs"
|
||||
|
||||
- name: create systemd startup job for gregtime
|
||||
include_tasks: podman/systemd-generate.yml
|
||||
vars:
|
||||
container_name: gregtime
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
- import_tasks: containers/home/partsy.yml
|
||||
vars:
|
||||
image: localhost/partsy:b8e4e92-dirty
|
||||
image: localhost/partsy:f3bb84a-45ae7ef
|
||||
tags: partsy
|
||||
|
||||
- import_tasks: containers/skudak/wiki.yml
|
||||
@@ -76,6 +76,11 @@
|
||||
image: "{{ aws_ecr_endpoint }}/fulfillr:20251003.1533"
|
||||
tags: debyltech, fulfillr
|
||||
|
||||
- import_tasks: containers/debyltech/uptime-kuma.yml
|
||||
vars:
|
||||
image: docker.io/louislam/uptime-kuma:1
|
||||
tags: debyltech, uptime-kuma
|
||||
|
||||
- import_tasks: containers/home/nosql.yml
|
||||
vars:
|
||||
image: docker.io/redis:7.2.1-alpine
|
||||
@@ -83,5 +88,5 @@
|
||||
|
||||
- import_tasks: containers/home/gregtime.yml
|
||||
vars:
|
||||
image: docker.io/library/greg-time-bot:1.0.1
|
||||
image: localhost/greg-time-bot:1.2.0
|
||||
tags: gregtime
|
||||
@@ -139,6 +139,24 @@
|
||||
}
|
||||
}
|
||||
|
||||
# Uptime Kuma - {{ uptime_kuma_server_name }}
|
||||
{{ uptime_kuma_server_name }} {
|
||||
{{ ip_restricted_site() }}
|
||||
|
||||
handle @local {
|
||||
import common_headers
|
||||
reverse_proxy localhost:3001 {
|
||||
# WebSocket support for live updates
|
||||
flush_interval -1
|
||||
}
|
||||
}
|
||||
|
||||
log {
|
||||
output file /var/log/caddy/uptime-kuma.log
|
||||
format json
|
||||
}
|
||||
}
|
||||
|
||||
# ============================================================================
|
||||
# COMPLEX CONFIGURATIONS
|
||||
# ============================================================================
|
||||
|
||||
Reference in New Issue
Block a user