From e13f4ceab3f394be71e90976b9cb02240cabcf47 Mon Sep 17 00:00:00 2001 From: PandaDEV Date: Thu, 26 Nov 2026 05:35:15 +0100 Subject: [PATCH] Add Ziit (#3407) Co-authored-by: Alexander L. Co-authored-by: nmfretz --- ziit/data/postgres/.gitkeep | 0 ziit/docker-compose.yml | 36 +++++++++++++++++++++++++ ziit/exports.sh | 2 ++ ziit/umbrel-app.yml | 52 +++++++++++++++++++++++++++++++++++++ 4 files changed, 90 insertions(+) create mode 100644 ziit/data/postgres/.gitkeep create mode 100644 ziit/docker-compose.yml create mode 100644 ziit/exports.sh create mode 100644 ziit/umbrel-app.yml diff --git a/ziit/data/postgres/.gitkeep b/ziit/data/postgres/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/ziit/docker-compose.yml b/ziit/docker-compose.yml new file mode 100644 index 000000000..671a5c83d --- /dev/null +++ b/ziit/docker-compose.yml @@ -0,0 +1,36 @@ +services: + app_proxy: + environment: + APP_HOST: ziit_app_1 + APP_PORT: 3000 + # Editor extensions and badges use API keys, not Umbrel login + PROXY_AUTH_WHITELIST: "/api/external/*,/api/public/*" + + app: + image: ghcr.io/0pandadev/ziit:v1.3.3@sha256:dfd1d51d2096aef1675d9d99e08e698963691142ecfa7b1d58f9031b5c2cff93 + restart: on-failure + environment: + ZIIT_DATABASE_URL: "postgresql://postgres:${APP_ZIIT_POSTGRES_PASSWORD}@ziit_postgres_1:5432/ziit" + ZIIT_PASETO_KEY: ${APP_ZIIT_PASETO_KEY} + # Umbrel proxies requests, so rate limits use the forwarded client IP + ZIIT_TRUST_PROXY: 1 + depends_on: + postgres: + condition: service_healthy + + postgres: + image: timescale/timescaledb-ha:pg17.11-ts2.32.0@sha256:e801086738f54cd32949baae7c78033fb774bca3c3abb50e1af59a72caf745e9 + restart: on-failure + environment: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: ${APP_ZIIT_POSTGRES_PASSWORD} + POSTGRES_DB: ziit + PGDATA: /var/lib/postgresql/data + volumes: + - ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data + healthcheck: + test: ["CMD-SHELL", "pg_isready -U postgres -d ziit"] + interval: 10s + timeout: 5s + retries: 5 + start_period: 10s diff --git a/ziit/exports.sh b/ziit/exports.sh new file mode 100644 index 000000000..94133b10b --- /dev/null +++ b/ziit/exports.sh @@ -0,0 +1,2 @@ +export APP_ZIIT_POSTGRES_PASSWORD="$(derive_entropy "${app_entropy_identifier}-postgres-password")" +export APP_ZIIT_PASETO_KEY="k4.local.$(openssl dgst -sha256 -binary <<< "$(derive_entropy "${app_entropy_identifier}-paseto-key")" | base64)" diff --git a/ziit/umbrel-app.yml b/ziit/umbrel-app.yml new file mode 100644 index 000000000..e74130924 --- /dev/null +++ b/ziit/umbrel-app.yml @@ -0,0 +1,52 @@ +manifestVersion: 2.0 +id: ziit +storage: + dataRoot: data +environment: + - name: ZIIT_DISABLE_REGISTRATION + services: + - app + default: "false" + options: + - "false" + - "true" + note: >- + Set to true to stop new accounts from being created once you have registered yours. + - name: ZIIT_BASE_URL + services: + - app + note: >- + Only needed for GitHub login. The address you open Ziit at, including https://, for example https://umbrel.local:3029. + - name: ZIIT_GITHUB_CLIENT_ID + services: + - app + note: >- + GitHub OAuth client ID, for signing in with GitHub. Also enter the client secret below and set the base URL above. + - name: ZIIT_GITHUB_CLIENT_SECRET + services: + - app + note: >- + GitHub OAuth client secret, from the same OAuth app as the client ID above. +category: developer +name: Ziit +version: "1.3.3" +tagline: The Swiss army knife of code time tracking +description: >- + Ziit (pronounced 'tseet') is an open-source, self-hostable alternative to WakaTime. It provides a clean, minimal, and fast dashboard for displaying coding statistics, while ensuring privacy by keeping all data on your own server. Ziit tracks coding activity such as projects, languages, editors, files, branches, operating systems, and time spent coding all presented in a familiar interface inspired by Plausible Analytics. +releaseNotes: "" +developer: PandaDEV +website: https://ziit.app +dependencies: [] +repo: https://github.com/0PandaDEV/Ziit +support: https://github.com/0PandaDEV/Ziit/issues +port: 3029 +gallery: + - 1.webp + - 2.webp + - 3.webp +path: "" +requiresHttps: true +defaultUsername: "" +defaultPassword: "" +submitter: PandaDEV +submission: https://github.com/getumbrel/umbrel-apps/pull/3407