From f9bbb1d81f40677cb847f92eb2bf8244ff6d2b9f Mon Sep 17 00:00:00 2001 From: Liosha84 Date: Tue, 17 Nov 2026 23:43:39 +0100 Subject: [PATCH] =?UTF-8?q?Template:=20template-umami=20=E2=80=94=20docker?= =?UTF-8?q?-compose.yml=20and=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- .gitattributes | 1 + README.md | 24 ++++++++++++++++++++++++ docker-compose.yml | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 .gitattributes create mode 100644 README.md create mode 100644 docker-compose.yml diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/README.md b/README.md new file mode 100644 index 0000000..227ab4c --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# Umami on Jambotron + +Privacy-friendly web analytics — a self-hosted alternative to Google Analytics. + +A ready-made template for [Jambotron](https://jambotron.com): one `docker-compose.yml` with the official image, nothing to build. + +## Deploy in one click + +1. Sign in to [jambotron.com](https://jambotron.com). +2. Press **Deploy** on the **Umami** card ([jambotron.com/apps](https://jambotron.com/apps), the home page or an empty projects page). +3. Jambotron uploads this template, generates random secrets (project variables `UMAMI_DB_PASSWORD`, `UMAMI_APP_SECRET`), adds an HTTPS subdomain to the `umami` service (port 3000) and starts the deploy. +4. Open the address, log in as `admin` / `umami` and **change the password right away**. Add your website and put the tracking script on its pages. + +## Deploy it yourself + +Download this repository as a ZIP, create a project on Jambotron, upload the ZIP, pick `docker-compose.yml`, set the project variables `UMAMI_DB_PASSWORD` and `UMAMI_APP_SECRET`, deploy and add a domain to the `umami` service, port 3000. Or point a project at this repository (deploy from Git). + +## Data + +Named volumes survive redeploys: `db_data` — the PostgreSQL database with websites, users and statistics. + +## Limits + +Fits the free plan: `umami` gets 768 MB and PostgreSQL 256 MB of the 1 GB project memory. diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..bdc70c3 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,35 @@ +# Umami — privacy-friendly web analytics, a self-hosted alternative to Google Analytics. +# On Jambotron: deploy → domain on the umami service, port 3000 → log in as admin / umami and change the password. +# UMAMI_DB_PASSWORD and UMAMI_APP_SECRET are project variables: one-click deploy generates them. +services: + umami-db: + image: postgres:17-alpine + restart: unless-stopped + environment: + POSTGRES_DB: umami + POSTGRES_USER: umami + POSTGRES_PASSWORD: ${UMAMI_DB_PASSWORD:?set UMAMI_DB_PASSWORD} + healthcheck: + test: ["CMD-SHELL", "pg_isready -U umami -d umami"] + interval: 5s + timeout: 3s + retries: 10 + volumes: + - db_data:/var/lib/postgresql/data + mem_limit: 256m + + umami: + image: ghcr.io/umami-software/umami:3.5 + restart: unless-stopped + depends_on: + umami-db: + condition: service_healthy + expose: + - "3000" + environment: + DATABASE_URL: postgresql://umami:${UMAMI_DB_PASSWORD}@umami-db:5432/umami + APP_SECRET: ${UMAMI_APP_SECRET:?set UMAMI_APP_SECRET} + mem_limit: 768m + +volumes: + db_data: