From 5903730e99e0ae74b99d1c0a9c3e94437c1d6bf5 Mon Sep 17 00:00:00 2001 From: tolerryan <105945216+tolerryan@users.noreply.github.com> Date: Sat, 4 Jan 2025 02:17:02 -0600 Subject: [PATCH] update --- roles/ind/{cronicle => healthcheck}/cron.vars | 0 roles/ind/healthcheck/docker-compose.env | 7 +++ .../healthcheck-install.yml} | 62 +++++++++---------- wikmd.tf | 2 +- 4 files changed, 38 insertions(+), 33 deletions(-) rename roles/ind/{cronicle => healthcheck}/cron.vars (100%) create mode 100644 roles/ind/healthcheck/docker-compose.env rename roles/ind/{cronicle/cronicle-install.yml => healthcheck/healthcheck-install.yml} (57%) diff --git a/roles/ind/cronicle/cron.vars b/roles/ind/healthcheck/cron.vars similarity index 100% rename from roles/ind/cronicle/cron.vars rename to roles/ind/healthcheck/cron.vars diff --git a/roles/ind/healthcheck/docker-compose.env b/roles/ind/healthcheck/docker-compose.env new file mode 100644 index 0000000..a792f93 --- /dev/null +++ b/roles/ind/healthcheck/docker-compose.env @@ -0,0 +1,7 @@ +ALLOWED_HOSTS=healthcheck.local +DEFAULT_FROM_EMAIL=healthcheck@homelab.com +EMAIL_HOST=stmp@healthcheck.local +EMAIL_HOST_PASSWORD=password +EMAIL_HOST_USER=user +SECRET_KEY=jnweqcrun2409vn8q9p34nf2iunskjdncv +SITE_ROOT=http://192.168.0.60 diff --git a/roles/ind/cronicle/cronicle-install.yml b/roles/ind/healthcheck/healthcheck-install.yml similarity index 57% rename from roles/ind/cronicle/cronicle-install.yml rename to roles/ind/healthcheck/healthcheck-install.yml index a18dc27..51f5747 100644 --- a/roles/ind/cronicle/cronicle-install.yml +++ b/roles/ind/healthcheck/healthcheck-install.yml @@ -6,31 +6,29 @@ vars: docker_compose_definition: | + volumes: + db-data: + services: - cronicle: - image: ghcr.io/soulteary/cronicle:latest - container_name: cronicle - hostname: cronicle - environment: - - TZ=America/Chicago + db: + image: postgres:16 volumes: - - /etc/localtime:/etc/localtime:ro - - /etc/timezone:/etc/timezone:ro - - ./data/data:/opt/cronicle/data - - ./data/logs:/opt/cronicle/logs - - ./data/plugins:/opt/cronicle/plugins + - db-data:/var/lib/postgresql/data + environment: + - POSTGRES_DB=$DB_NAME + - POSTGRES_PASSWORD=$DB_PASSWORD + web: + image: healthchecks/healthchecks:latest + env_file: + - docker-compose.env ports: - - 3012:3012 - restart: unless-stopped - healthcheck: - test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider localhost:3012/api/app/ping || exit 1"] - interval: 5s - timeout: 1s - retries: 3 - logging: - driver: "json-file" - options: - max-size: "10m" + - "8000:8000" + # To enable SMTP on port 2525, set SMTPD_PORT=2525 in .env + # and uncomment the following line: + # - "2525:2525" + depends_on: + - db + command: bash -c 'while !