From d82f6199159f6a2bcf4e220e5c66346d31f49339 Mon Sep 17 00:00:00 2001 From: Cagdas Salur Date: Wed, 2 Dec 2026 04:14:01 +0300 Subject: [PATCH] Add Tela (#5815) Co-authored-by: nmfretz --- tela/data/db/.gitkeep | 0 tela/data/deck/.gitkeep | 0 tela/docker-compose.yml | 84 +++++++++++++++++++++++++++++++++++++++++ tela/exports.sh | 7 ++++ tela/umbrel-app.yml | 57 ++++++++++++++++++++++++++++ 5 files changed, 148 insertions(+) create mode 100644 tela/data/db/.gitkeep create mode 100644 tela/data/deck/.gitkeep create mode 100644 tela/docker-compose.yml create mode 100644 tela/exports.sh create mode 100644 tela/umbrel-app.yml diff --git a/tela/data/db/.gitkeep b/tela/data/db/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/tela/data/deck/.gitkeep b/tela/data/deck/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/tela/docker-compose.yml b/tela/docker-compose.yml new file mode 100644 index 000000000..cffee422d --- /dev/null +++ b/tela/docker-compose.yml @@ -0,0 +1,84 @@ +services: + app_proxy: + environment: + APP_HOST: tela_proxy_1 + APP_PORT: 80 + # tela has its own accounts, and teammates, share links, public spaces, + # AI agents and WebDAV clients can't pass the Umbrel login. + PROXY_AUTH_ADD: "false" + + proxy: + image: ghcr.io/zcag/tela-proxy:0.12.2@sha256:0e97863e993d06e4cabc0e8fb3a1945da429bc53894d433516e3c34c74ff1d69 + restart: on-failure + environment: + TELA_SITE_ADDRESS: ":80" + TELA_UPSTREAM_BACKEND: backend:8080 + TELA_UPSTREAM_FRONTEND: frontend:80 + depends_on: + - backend + - frontend + + backend: + image: ghcr.io/zcag/tela-backend:0.12.2@sha256:108a9f6f4fd52dbec3b35e75d6702d56237ce3e69b138b36fa5ff7c935ab3c09 + init: true + restart: on-failure + environment: + TELA_PUBLIC_BASE_URL: "http://${DEVICE_DOMAIN_NAME}:${APP_TELA_PORT}" + TELA_DATABASE_URL: "postgres://tela:${APP_TELA_POSTGRES_PASSWORD}@postgres:5432/tela?sslmode=disable" + TELA_SHARE_SECRET: ${APP_TELA_SHARE_SECRET} + TELA_API_KEY_SECRET: ${APP_TELA_API_KEY_SECRET} + # Creates the admin on first boot so nobody else can claim it through the + # setup page. Ignored once any user exists. + TELA_ADMIN_USERNAME: umbrel + TELA_ADMIN_PASSWORD: ${APP_PASSWORD} + # No SMTP is set up, so start with self-registration closed. Only applies + # on first boot; the admin can change it later in Settings. + TELA_REGISTRATION_OPEN: "false" + # Umbrel handles app updates, so skip tela's daily update check. + TELA_UPDATE_CHECK: "0" + TELA_GOTENBERG_URL: http://gotenberg:3000 + TELA_PDF_RENDER_BASE_URL: http://proxy + TELA_DECK_URL: http://deck:3344 + depends_on: + postgres: + condition: service_healthy + gotenberg: + condition: service_started + deck: + condition: service_started + + frontend: + image: ghcr.io/zcag/tela-frontend:0.12.2@sha256:d6fd3fa3b819c24e4a01f6dd616cd53ee39a10350a70ba83ab2d435a33adaf23 + restart: on-failure + + postgres: + image: pgvector/pgvector:0.8.3-pg17@sha256:be400b50812ab2cc908ed78593fda2e51e3b45fe774fa637f1c7b16e68531d95 + restart: on-failure + environment: + POSTGRES_USER: tela + POSTGRES_PASSWORD: ${APP_TELA_POSTGRES_PASSWORD} + POSTGRES_DB: tela + volumes: + - ${APP_DATA_DIR}/data/db:/var/lib/postgresql/data + healthcheck: + test: ["CMD-SHELL", "pg_isready -U tela -d tela"] + interval: 5s + timeout: 3s + retries: 20 + start_period: 10s + + gotenberg: + image: gotenberg/gotenberg:8.34.0@sha256:67097317623a503ba2a6a7e9ae8db6929a1f7e1bbd88077bacf2d325fbdab923 + restart: on-failure + + deck: + image: ghcr.io/zcag/tela-deck:0.12.2@sha256:7b536df61c2f3549e8df8d1414343b2bf1209b645c2b7a5f766ba5e9e843aada + restart: on-failure + volumes: + - ${APP_DATA_DIR}/data/deck:/data + healthcheck: + test: ["CMD", "node", "-e", "require('http').get('http://localhost:3344/health',r=>process.exit(r.statusCode===200?0:1)).on('error',()=>process.exit(1))"] + interval: 10s + timeout: 5s + retries: 5 + start_period: 30s diff --git a/tela/exports.sh b/tela/exports.sh new file mode 100644 index 000000000..93d4dd79f --- /dev/null +++ b/tela/exports.sh @@ -0,0 +1,7 @@ +export APP_TELA_PORT="8780" + +# These must never change: a new API key secret invalidates every access token, +# and a new share secret invalidates every share link. +export APP_TELA_POSTGRES_PASSWORD="$(derive_entropy "${app_entropy_identifier}-postgres-password")" +export APP_TELA_SHARE_SECRET="$(derive_entropy "${app_entropy_identifier}-share-secret")" +export APP_TELA_API_KEY_SECRET="$(derive_entropy "${app_entropy_identifier}-api-key-secret")" diff --git a/tela/umbrel-app.yml b/tela/umbrel-app.yml new file mode 100644 index 000000000..bfe273f08 --- /dev/null +++ b/tela/umbrel-app.yml @@ -0,0 +1,57 @@ +manifestVersion: 1 +id: tela +storage: + dataRoot: data +category: files +name: tela +version: "0.12.2" +tagline: Markdown-native team wiki with live collaboration and first-class AI agents +description: >- + tela is a self-hostable, markdown-native team wiki. The backend is Go + + PostgreSQL; the editor is a React app with live Yjs collaborative editing, so + teammates write together in real time. Every page is canonical markdown. + + + Sign in with the username and password shown in Umbrel. + + + Highlights: + + + - Real-time collaborative markdown editor with a rich block palette + (callouts, tabs, collapsibles, diagrams, decks). + + - Ranked full-text search built in, plus optional semantic search and + "ask your docs" when you point tela at an embedding/LLM endpoint. + + - A built-in MCP server so AI agents are first-class editors and readers of + your wiki, alongside Atlas agent workflows. + + - WebDAV sync to edit pages as files from your machine, public/blog spaces, + Slidev decks, and PDF export. + + - Email-first accounts with self-registration, granular space permissions, + and SSO options. + + + All data stays on your server in PostgreSQL. tela is open source (AGPL-3.0). +releaseNotes: "" +developer: zcag +website: https://telawiki.com +dependencies: [] +repo: https://github.com/zcag/tela +support: https://github.com/zcag/tela +port: 8780 +gallery: + - 1.webp + - 2.webp + - 3.webp + - 4.webp +path: "" +defaultUsername: "umbrel" +defaultPassword: "" +deterministicPassword: true +backupIgnore: + - data/deck/* +submitter: zcag +submission: https://github.com/getumbrel/umbrel-apps/pull/5815