ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
feat(services): Phase 3 business & niche utility templates
Juan Denis01871bdc745c
diff --git a/backend/templates/chatwoot.yaml b/backend/templates/chatwoot.yamlnew file mode 100644index 00000000..6940573d--- /dev/null+++ b/backend/templates/chatwoot.yaml@@ -0,0 +1,147 @@+id: chatwoot+name: Chatwoot+version: "1.0"+description: Open-source customer engagement suite with live chat and a shared inbox.+icon: data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTAiLz48Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSI0Ii8+PGxpbmUgeDE9IjQuOTMiIHkxPSI0LjkzIiB4Mj0iOS4xNyIgeTI9IjkuMTciLz48bGluZSB4MT0iMTQuODMiIHkxPSIxNC44MyIgeDI9IjE5LjA3IiB5Mj0iMTkuMDciLz48bGluZSB4MT0iMTQuODMiIHkxPSI5LjE3IiB4Mj0iMTkuMDciIHkyPSI0LjkzIi8+PGxpbmUgeDE9IjQuOTMiIHkxPSIxOS4wNyIgeDI9IjkuMTciIHkyPSIxNC44MyIvPjwvc3ZnPg==+website: https://www.chatwoot.com+documentation: https://www.chatwoot.com/docs/self-hosted/+categories:+ - business+ - support+ - communication++variables:+ - name: HTTP_PORT+ description: Port for the Chatwoot web UI (auto-assigned)+ type: port+ default: "3000"+ hidden: true+ - name: SECRET_KEY_BASE+ description: Rails secret key base used to sign sessions and cookies (auto-generated)+ type: random+ length: 64+ hidden: true+ - name: DB_PASSWORD+ description: PostgreSQL password (auto-generated)+ type: password+ length: 32+ hidden: true+ - name: REDIS_PASSWORD+ description: Redis password (auto-generated)+ type: password+ length: 32+ hidden: true++ports:+ - port: "${HTTP_PORT}"+ protocol: http+ description: Chatwoot Web UI++requirements:+ memory: 2GB+ storage: 5GB++compose:+ services:+ rails:+ image: chatwoot/chatwoot:v3.16.0+ container_name: ${APP_NAME}+ restart: unless-stopped+ ports:+ - "${HTTP_PORT}:3000"+ environment:+ SECRET_KEY_BASE: "${SECRET_KEY_BASE}"+ RAILS_ENV: "production"+ NODE_ENV: "production"+ INSTALLATION_ENV: "docker"+ POSTGRES_HOST: "postgres"+ POSTGRES_DATABASE: "chatwoot"+ POSTGRES_USERNAME: "chatwoot"+ POSTGRES_PASSWORD: "${DB_PASSWORD}"+ REDIS_URL: "redis://:${REDIS_PASSWORD}@redis:6379"+ REDIS_PASSWORD: "${REDIS_PASSWORD}"+ FRONTEND_URL: "http://localhost:${HTTP_PORT}"+ RAILS_LOG_TO_STDOUT: "true"+ command: ["sh", "-c", "bundle exec rails db:chatwoot_prepare && bundle exec rails s -p 3000 -b 0.0.0.0"]+ volumes:+ - chatwoot-storage:/app/storage+ depends_on:+ - postgres+ - redis+ healthcheck:+ test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:3000"]+ interval: 30s+ timeout: 10s+ retries: 10+ start_period: 120s++ sidekiq:+ image: chatwoot/chatwoot:v3.16.0+ container_name: ${APP_NAME}-sidekiq+ restart: unless-stopped+ environment:+ SECRET_KEY_BASE: "${SECRET_KEY_BASE}"+ RAILS_ENV: "production"+ NODE_ENV: "production"+ INSTALLATION_ENV: "docker"+ POSTGRES_HOST: "postgres"+ POSTGRES_DATABASE: "chatwoot"+ POSTGRES_USERNAME: "chatwoot"+ POSTGRES_PASSWORD: "${DB_PASSWORD}"+ REDIS_URL: "redis://:${REDIS_PASSWORD}@redis:6379"+ REDIS_PASSWORD: "${REDIS_PASSWORD}"+ FRONTEND_URL: "http://localhost:${HTTP_PORT}"+ RAILS_LOG_TO_STDOUT: "true"+ command: ["bundle", "exec", "sidekiq", "-C", "config/sidekiq.yml"]+ volumes:+ - chatwoot-storage:/app/storage+ depends_on:+ - postgres+ - redis++ postgres:+ image: pgvector/pgvector:pg16+ container_name: ${APP_NAME}-postgres+ restart: unless-stopped+ environment:+ POSTGRES_DB: chatwoot+ POSTGRES_USER: chatwoot+ POSTGRES_PASSWORD: "${DB_PASSWORD}"+ volumes:+ - chatwoot-postgres:/var/lib/postgresql/data+ healthcheck:+ test: ["CMD-SHELL", "pg_isready -U chatwoot -d chatwoot"]+ interval: 10s+ timeout: 5s+ retries: 5++ redis:+ image: redis:7-alpine+ container_name: ${APP_NAME}-redis+ restart: unless-stopped+ command: redis-server --requirepass ${REDIS_PASSWORD}+ volumes:+ - chatwoot-redis:/data+ healthcheck:+ test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD}", "PING"]+ interval: 30s+ timeout: 10s+ retries: 5++ volumes:+ chatwoot-storage:+ chatwoot-postgres:+ chatwoot-redis:++post_install: |+ Chatwoot is installed and running!++ - Web UI: http://your-server:${HTTP_PORT}++ Open the web UI and register the first account — this user becomes the+ super admin of your installation.++ For production:+ - Set FRONTEND_URL to your real public domain (edit the app's environment),+ otherwise links in invitations and emails will point to localhost.+ - Configure SMTP so the app can send invitation and notification emails.diff --git a/backend/templates/documenso.yaml b/backend/templates/documenso.yamlnew file mode 100644index 00000000..d492781b--- /dev/null+++ b/backend/templates/documenso.yaml@@ -0,0 +1,138 @@+id: documenso+name: Documenso+version: "1.0"+description: Open-source document signing platform for sending and signing documents online.+icon: data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTEyIDE5bDctNyAzIDMtNyA3LTMtM3oiLz48cGF0aCBkPSJNMTggMTNsLTEuNS03LjVMMiAybDMuNSAxNC41TDEzIDE4bDUtNXoiLz48cGF0aCBkPSJNMiAybDcuNTg2IDcuNTg2Ii8+PGNpcmNsZSBjeD0iMTEiIGN5PSIxMSIgcj0iMiIvPjwvc3ZnPg==+website: https://documenso.com+documentation: https://docs.documenso.com+categories:+ - business+ - documents+ - productivity++variables:+ - name: HTTP_PORT+ description: Port for the Documenso web UI (auto-assigned)+ type: port+ default: "3000"+ hidden: true+ - name: NEXTAUTH_SECRET+ description: Secret used to sign authentication sessions (auto-generated)+ type: random+ length: 48+ hidden: true+ - name: ENCRYPTION_KEY+ description: Primary encryption key for stored secrets (auto-generated)+ type: random+ length: 48+ hidden: true+ - name: ENCRYPTION_SECONDARY_KEY+ description: Secondary encryption key for key rotation (auto-generated)+ type: random+ length: 48+ hidden: true+ - name: DB_PASSWORD+ description: PostgreSQL password (auto-generated)+ type: password+ length: 32+ hidden: true++ports:+ - port: "${HTTP_PORT}"+ protocol: http+ description: Documenso Web UI++requirements:+ memory: 2GB+ storage: 4GB++compose:+ services:+ documenso:+ image: documenso/documenso:latest+ container_name: ${APP_NAME}+ restart: unless-stopped+ ports:+ - "${HTTP_PORT}:3000"+ environment:+ NEXTAUTH_SECRET: "${NEXTAUTH_SECRET}"+ NEXT_PRIVATE_ENCRYPTION_KEY: "${ENCRYPTION_KEY}"+ NEXT_PRIVATE_ENCRYPTION_SECONDARY_KEY: "${ENCRYPTION_SECONDARY_KEY}"+ NEXTAUTH_URL: "http://localhost:${HTTP_PORT}"+ NEXT_PUBLIC_WEBAPP_URL: "http://localhost:${HTTP_PORT}"+ NEXT_PRIVATE_DATABASE_URL: "postgresql://documenso:${DB_PASSWORD}@db:5432/documenso"+ NEXT_PRIVATE_DIRECT_DATABASE_URL: "postgresql://documenso:${DB_PASSWORD}@db:5432/documenso"+ NEXT_PRIVATE_SMTP_TRANSPORT: "smtp-auth"+ NEXT_PRIVATE_SMTP_HOST: ""+ NEXT_PRIVATE_SMTP_PORT: ""+ NEXT_PRIVATE_SMTP_USERNAME: ""+ NEXT_PRIVATE_SMTP_PASSWORD: ""+ NEXT_PRIVATE_SMTP_FROM_NAME: "Documenso"+ NEXT_PRIVATE_SMTP_FROM_ADDRESS: ""+ NEXT_PRIVATE_SIGNING_TRANSPORT: "local"+ NEXT_PRIVATE_SIGNING_LOCAL_FILE_PATH: "/opt/documenso/cert.p12"+ volumes:+ - documenso-data:/opt/documenso+ depends_on:+ - db+ healthcheck:+ test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:3000/ || exit 1"]+ interval: 30s+ timeout: 10s+ retries: 5+ start_period: 60s++ db:+ image: postgres:16-alpine+ container_name: ${APP_NAME}-db+ restart: unless-stopped+ environment:+ POSTGRES_DB: documenso+ POSTGRES_USER: documenso+ POSTGRES_PASSWORD: "${DB_PASSWORD}"+ volumes:+ - documenso-db:/var/lib/postgresql/data+ healthcheck:+ test: ["CMD-SHELL", "pg_isready -U documenso -d documenso"]+ interval: 10s+ timeout: 5s+ retries: 5++ volumes:+ documenso-data:+ documenso-db:++post_install: |+ Documenso is installed and running!++ - Web UI: http://your-server:${HTTP_PORT}+ - Create your admin account on first visit by signing up.++ IMPORTANT — signing certificate required:+ Documenso needs a PKCS#12 (.p12) signing certificate to seal signed+ documents. It expects the file at /opt/documenso/cert.p12 inside the+ container (the documenso-data volume). Until you provide one, document+ signing will fail.++ Generate a self-signed certificate and copy it into the data volume:++ # 1) Generate a private key and self-signed cert (valid 1 year)+ openssl genrsa -out private.key 2048+ openssl req -new -x509 -key private.key -out certificate.crt -days 365 \+ -subj "/CN=Documenso/O=YourOrg"++ # 2) Bundle them into a PKCS#12 file (set/remember the passphrase)+ openssl pkcs12 -export -out cert.p12 \+ -inkey private.key -in certificate.crt -legacy \+ -passout pass:changeme++ # 3) Copy the cert into the running container's data volume+ docker cp cert.p12 ${APP_NAME}:/opt/documenso/cert.p12++ If you set a passphrase in step 2, also set the environment variable+ NEXT_PRIVATE_SIGNING_LOCAL_FILE_PASSPHRASE to that value and recreate+ the container.++ SMTP for email delivery (invites, signing notifications) is left blank.+ Fill in NEXT_PRIVATE_SMTP_HOST / PORT / USERNAME / PASSWORD /+ FROM_ADDRESS to enable outgoing email.diff --git a/backend/templates/karakeep.yaml b/backend/templates/karakeep.yamlnew file mode 100644index 00000000..f0cfa29a--- /dev/null+++ b/backend/templates/karakeep.yaml@@ -0,0 +1,113 @@+id: karakeep+name: Karakeep+version: "1.0"+description: Self-hosted bookmark-everything app (formerly Hoarder) that saves links, notes, and images with AI tagging and full-text search.+icon: data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTE5IDIxbC03LTUtNyA1VjVhMiAyIDAgMCAxIDItMmgxMGEyIDIgMCAwIDEgMiAyeiIvPjwvc3ZnPg==+website: https://karakeep.app+documentation: https://docs.karakeep.app+categories:+ - productivity+ - bookmarks++variables:+ - name: HTTP_PORT+ description: Port for the Karakeep web UI (auto-assigned)+ type: port+ default: "3000"+ hidden: true+ - name: NEXTAUTH_SECRET+ description: Secret used to sign Karakeep auth sessions (auto-generated)+ type: random+ length: 48+ hidden: true+ - name: MEILI_MASTER_KEY+ description: Master key for the Meilisearch full-text search backend (auto-generated)+ type: random+ length: 48+ hidden: true++ports:+ - port: "${HTTP_PORT}"+ protocol: http+ description: Karakeep Web UI++requirements:+ memory: 1GB+ storage: 3GB++compose:+ services:+ web:+ image: ghcr.io/karakeep-app/karakeep:release+ container_name: ${APP_NAME}+ restart: unless-stopped+ ports:+ - "${HTTP_PORT}:3000"+ environment:+ NEXTAUTH_SECRET: "${NEXTAUTH_SECRET}"+ NEXTAUTH_URL: "http://localhost:${HTTP_PORT}"+ NEXTAUTH_URL_INTERNAL: "http://localhost:3000"+ MEILI_ADDR: "http://meilisearch:7700"+ MEILI_MASTER_KEY: "${MEILI_MASTER_KEY}"+ BROWSER_WEB_URL: "http://chrome:9222"+ DATA_DIR: "/data"+ volumes:+ - karakeep-data:/data+ depends_on:+ - chrome+ - meilisearch+ healthcheck:+ test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3000/api/health"]+ interval: 30s+ timeout: 10s+ retries: 5+ start_period: 30s++ chrome:+ image: gcr.io/zenika-hub/alpine-chrome:123+ container_name: ${APP_NAME}-chrome+ restart: unless-stopped+ command:+ - "--no-sandbox"+ - "--disable-gpu"+ - "--disable-dev-shm-usage"+ - "--remote-debugging-address=0.0.0.0"+ - "--remote-debugging-port=9222"+ - "--hide-scrollbars"++ meilisearch:+ image: getmeili/meilisearch:v1.12+ container_name: ${APP_NAME}-meilisearch+ restart: unless-stopped+ environment:+ MEILI_MASTER_KEY: "${MEILI_MASTER_KEY}"+ MEILI_NO_ANALYTICS: "true"+ volumes:+ - karakeep-meili:/meili_data+ healthcheck:+ test: ["CMD", "curl", "-fsS", "http://127.0.0.1:7700/health"]+ interval: 15s+ timeout: 10s+ retries: 5+ start_period: 20s++ volumes:+ karakeep-data:+ karakeep-meili:++post_install: |+ Karakeep is installed and running!++ - Web UI: http://your-server:${HTTP_PORT}+ - Open the URL and register the first user account, then sign in to+ start saving bookmarks, notes, and images.++ Three containers make up this stack: the web app, a headless Chrome+ used to fetch and screenshot pages, and Meilisearch for full-text+ search.++ AI-based automatic tagging is optional. To enable it, add an inference+ endpoint via environment variables — either an OpenAI API key+ (OPENAI_API_KEY) or a local/self-hosted OpenAI-compatible endpoint+ such as Ollama or Prompture Hub (OPENAI_BASE_URL + a model name in+ INFERENCE_TEXT_MODEL). Restart the web container after changing them.diff --git a/backend/templates/linkding.yaml b/backend/templates/linkding.yamlnew file mode 100644index 00000000..3756596f--- /dev/null+++ b/backend/templates/linkding.yaml@@ -0,0 +1,67 @@+id: linkding+name: linkding+version: "1.0"+description: Minimal, fast self-hosted bookmark manager.+icon: data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTE5IDIxbC03LTUtNyA1VjVhMiAyIDAgMCAxIDItMmgxMGEyIDIgMCAwIDEgMiAyeiIvPjwvc3ZnPg==+website: https://linkding.link+documentation: https://linkding.link/installation/+categories:+ - productivity+ - bookmarks++variables:+ - name: HTTP_PORT+ description: Port for the linkding web UI (auto-assigned)+ type: port+ default: "9090"+ hidden: true+ - name: ADMIN_USERNAME+ description: Default admin username+ type: string+ default: "admin"+ - name: ADMIN_PASSWORD+ description: Default admin password (auto-generated)+ type: password+ length: 24++ports:+ - port: "${HTTP_PORT}"+ protocol: http+ description: linkding Web UI++requirements:+ memory: 256MB+ storage: 1GB++compose:+ services:+ linkding:+ image: sissbruecker/linkding:latest+ container_name: ${APP_NAME}+ restart: unless-stopped+ ports:+ - "${HTTP_PORT}:9090"+ environment:+ LD_SUPERUSER_NAME: "${ADMIN_USERNAME}"+ LD_SUPERUSER_PASSWORD: "${ADMIN_PASSWORD}"+ volumes:+ - linkding-data:/etc/linkding/data+ healthcheck:+ test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:9090/health || exit 1"]+ interval: 30s+ timeout: 10s+ retries: 5+ start_period: 20s++ volumes:+ linkding-data:++post_install: |+ linkding is installed and running!++ - Web UI: http://your-server:${HTTP_PORT}+ - Username: ${ADMIN_USERNAME}+ - Password: ${ADMIN_PASSWORD}++ Sign in with the credentials above, then add the browser bookmarklet or+ extension to start saving bookmarks.diff --git a/backend/templates/metabase.yaml b/backend/templates/metabase.yamlnew file mode 100644index 00000000..acfba8bd--- /dev/null+++ b/backend/templates/metabase.yaml@@ -0,0 +1,84 @@+id: metabase+name: Metabase+version: "1.0"+description: Open-source business intelligence and dashboards tool for exploring your data.+icon: data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PGxpbmUgeDE9IjEyIiB5MT0iMjAiIHgyPSIxMiIgeTI9IjEwIi8+PGxpbmUgeDE9IjE4IiB5MT0iMjAiIHgyPSIxOCIgeTI9IjQiLz48bGluZSB4MT0iNiIgeTE9IjIwIiB4Mj0iNiIgeTI9IjE2Ii8+PC9zdmc++website: https://www.metabase.com+documentation: https://www.metabase.com/docs/latest/+categories:+ - analytics+ - business+ - productivity++variables:+ - name: HTTP_PORT+ description: Port for the Metabase web UI (auto-assigned)+ type: port+ default: "3000"+ hidden: true+ - name: DB_PASSWORD+ description: PostgreSQL password for the Metabase metadata database (auto-generated)+ type: password+ length: 32+ hidden: true++ports:+ - port: "${HTTP_PORT}"+ protocol: http+ description: Metabase Web UI++requirements:+ memory: 2GB+ storage: 2GB++compose:+ services:+ metabase:+ image: metabase/metabase:v0.51.6+ container_name: ${APP_NAME}+ restart: unless-stopped+ ports:+ - "${HTTP_PORT}:3000"+ environment:+ MB_DB_TYPE: "postgres"+ MB_DB_DBNAME: "metabase"+ MB_DB_PORT: "5432"+ MB_DB_USER: "metabase"+ MB_DB_PASS: "${DB_PASSWORD}"+ MB_DB_HOST: "db"+ depends_on:+ - db+ healthcheck:+ test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:3000/api/health || exit 1"]+ interval: 30s+ timeout: 10s+ retries: 5+ start_period: 90s++ db:+ image: postgres:16-alpine+ container_name: ${APP_NAME}-db+ restart: unless-stopped+ environment:+ POSTGRES_DB: metabase+ POSTGRES_USER: metabase+ POSTGRES_PASSWORD: "${DB_PASSWORD}"+ volumes:+ - metabase-db:/var/lib/postgresql/data+ healthcheck:+ test: ["CMD-SHELL", "pg_isready -U metabase -d metabase"]+ interval: 10s+ timeout: 5s+ retries: 5++ volumes:+ metabase-db:++post_install: |+ Metabase is installed and running!++ - Web UI: http://your-server:${HTTP_PORT}++ On first visit, complete the setup wizard at the web UI to create your+ admin account, then connect the data sources you want to analyze and+ start building dashboards.diff --git a/backend/templates/nodebb.yaml b/backend/templates/nodebb.yamlnew file mode 100644index 00000000..696bce3f--- /dev/null+++ b/backend/templates/nodebb.yaml@@ -0,0 +1,107 @@+id: nodebb+name: NodeBB+version: "1.0"+description: Modern, real-time forum and community platform built on Node.js.+icon: data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTE3IDIxdi0yYTQgNCAwIDAgMC00LTRINWE0IDQgMCAwIDAtNCA0djIiLz48Y2lyY2xlIGN4PSI5IiBjeT0iNyIgcj0iNCIvPjxwYXRoIGQ9Ik0yMyAyMXYtMmE0IDQgMCAwIDAtMy0zLjg3TTE2IDMuMTNhNCA0IDAgMCAxIDAgNy43NSIvPjwvc3ZnPg==+website: https://nodebb.org+documentation: https://docs.nodebb.org+categories:+ - community+ - forum+ - business++variables:+ - name: HTTP_PORT+ description: Port for the NodeBB web UI (auto-assigned)+ type: port+ default: "4567"+ hidden: true+ - name: ADMIN_USERNAME+ description: Default admin username+ type: string+ default: "admin"+ - name: ADMIN_PASSWORD+ description: Default admin password (auto-generated)+ type: password+ length: 24+ - name: DB_PASSWORD+ description: PostgreSQL password (auto-generated)+ type: password+ length: 32+ hidden: true++ports:+ - port: "${HTTP_PORT}"+ protocol: http+ description: NodeBB Web UI++requirements:+ memory: 1GB+ storage: 2GB++compose:+ services:+ nodebb:+ image: ghcr.io/nodebb/nodebb:latest+ container_name: ${APP_NAME}+ restart: unless-stopped+ ports:+ - "${HTTP_PORT}:4567"+ environment:+ NODEBB_URL: "http://localhost:${HTTP_PORT}"+ NODEBB_DB: "postgres"+ NODEBB_DB_HOST: "db"+ NODEBB_DB_PORT: "5432"+ NODEBB_DB_NAME: "nodebb"+ NODEBB_DB_USER: "nodebb"+ NODEBB_DB_PASSWORD: "${DB_PASSWORD}"+ NODEBB_ADMIN_USERNAME: "${ADMIN_USERNAME}"+ NODEBB_ADMIN_PASSWORD: "${ADMIN_PASSWORD}"+ NODEBB_ADMIN_EMAIL: "[email protected]"+ volumes:+ - nodebb-uploads:/usr/src/app/public/uploads+ - nodebb-config:/usr/src/app/config+ depends_on:+ - db+ healthcheck:+ test: ["CMD-SHELL", "bash -c ':> /dev/tcp/127.0.0.1/4567' || exit 1"]+ interval: 30s+ timeout: 10s+ retries: 5+ start_period: 60s++ db:+ image: postgres:16-alpine+ container_name: ${APP_NAME}-db+ restart: unless-stopped+ environment:+ POSTGRES_DB: nodebb+ POSTGRES_USER: nodebb+ POSTGRES_PASSWORD: "${DB_PASSWORD}"+ volumes:+ - nodebb-db:/var/lib/postgresql/data+ healthcheck:+ test: ["CMD-SHELL", "pg_isready -U nodebb -d nodebb"]+ interval: 10s+ timeout: 5s+ retries: 5++ volumes:+ nodebb-uploads:+ nodebb-config:+ nodebb-db:++post_install: |+ NodeBB is installed and running!++ - Web UI: http://your-server:${HTTP_PORT}+ - Username: ${ADMIN_USERNAME}+ - Password: ${ADMIN_PASSWORD}++ On first start, open the URL and complete the web installer if+ prompted. If the installer appears, point it at the PostgreSQL+ database (host "db", port 5432, name "nodebb", user "nodebb") and+ create the administrator account.++ Once setup finishes, sign in with the credentials above and manage+ your community from the Admin Control Panel.diff --git a/backend/templates/posthog.yaml b/backend/templates/posthog.yamlnew file mode 100644index 00000000..e59e981f--- /dev/null+++ b/backend/templates/posthog.yaml@@ -0,0 +1,522 @@+id: posthog+name: PostHog+version: "1.0"+description: Open-source product analytics with session replay, feature flags, A/B testing, and event autocapture.+icon: data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PGxpbmUgeDE9IjEyIiB5MT0iMjAiIHgyPSIxMiIgeTI9IjEwIi8+PGxpbmUgeDE9IjE4IiB5MT0iMjAiIHgyPSIxOCIgeTI9IjQiLz48bGluZSB4MT0iNiIgeTE9IjIwIiB4Mj0iNiIgeTI9IjE2Ii8+PC9zdmc++website: https://posthog.com+documentation: https://posthog.com/docs/self-host+categories:+ - analytics+ - business++variables:+ - name: HTTP_PORT+ description: Port for the PostHog web UI (auto-assigned)+ type: port+ default: "8000"+ hidden: true+ - name: POSTHOG_SECRET+ description: Django secret key used to sign sessions and tokens (auto-generated)+ type: random+ length: 64+ hidden: true+ - name: POSTGRES_PASSWORD+ description: PostgreSQL password (auto-generated)+ type: password+ length: 32+ hidden: true+ - name: OBJECT_STORAGE_ACCESS_KEY_ID+ description: Access key for the bundled object storage+ type: string+ default: "object_storage_root_user"+ hidden: true+ - name: OBJECT_STORAGE_SECRET_ACCESS_KEY+ description: Secret key for the bundled object storage (auto-generated)+ type: random+ length: 40+ hidden: true++ports:+ - port: "${HTTP_PORT}"+ protocol: http+ description: PostHog Web UI++requirements:+ memory: 4GB+ storage: 20GB++compose:+ services:+ web:+ image: posthog/posthog:latest+ container_name: ${APP_NAME}+ restart: unless-stopped+ command: /compose/start+ ports:+ - "${HTTP_PORT}:8000"+ environment:+ OPT_OUT_CAPTURING: "true"+ DISABLE_SECURE_SSL_REDIRECT: "true"+ IS_BEHIND_PROXY: "true"+ TRUST_ALL_PROXIES: "true"+ DEPLOYMENT: hobby+ SITE_URL: "http://localhost:${HTTP_PORT}"+ SECRET_KEY: "${POSTHOG_SECRET}"+ ENCRYPTION_SALT_KEYS: "00beef0000beef0000beef0000beef00"+ DATABASE_URL: "postgres://posthog:${POSTGRES_PASSWORD}@posthog-db:5432/posthog"+ PGHOST: posthog-db+ PGUSER: posthog+ PGPASSWORD: "${POSTGRES_PASSWORD}"+ CLICKHOUSE_HOST: posthog-clickhouse+ CLICKHOUSE_DATABASE: posthog+ CLICKHOUSE_SECURE: "false"+ CLICKHOUSE_VERIFY: "false"+ KAFKA_HOSTS: posthog-kafka+ REDIS_URL: "redis://posthog-redis:6379/"+ OBJECT_STORAGE_ENABLED: "true"+ OBJECT_STORAGE_ENDPOINT: "http://posthog-objectstorage:9000"+ OBJECT_STORAGE_ACCESS_KEY_ID: "${OBJECT_STORAGE_ACCESS_KEY_ID}"+ OBJECT_STORAGE_SECRET_ACCESS_KEY: "${OBJECT_STORAGE_SECRET_ACCESS_KEY}"+ OBJECT_STORAGE_BUCKET: posthog+ depends_on:+ - posthog-db+ - posthog-redis+ - posthog-clickhouse+ - posthog-kafka+ - posthog-objectstorage++ worker:+ image: posthog/posthog:latest+ container_name: ${APP_NAME}-worker+ restart: unless-stopped+ command: ./bin/docker-worker-celery --with-scheduler+ environment:+ OPT_OUT_CAPTURING: "true"+ DISABLE_SECURE_SSL_REDIRECT: "true"+ IS_BEHIND_PROXY: "true"+ TRUST_ALL_PROXIES: "true"+ DEPLOYMENT: hobby+ SITE_URL: "http://localhost:${HTTP_PORT}"+ SECRET_KEY: "${POSTHOG_SECRET}"+ ENCRYPTION_SALT_KEYS: "00beef0000beef0000beef0000beef00"+ DATABASE_URL: "postgres://posthog:${POSTGRES_PASSWORD}@posthog-db:5432/posthog"+ PGHOST: posthog-db+ PGUSER: posthog+ PGPASSWORD: "${POSTGRES_PASSWORD}"+ CLICKHOUSE_HOST: posthog-clickhouse+ CLICKHOUSE_DATABASE: posthog+ CLICKHOUSE_SECURE: "false"+ CLICKHOUSE_VERIFY: "false"+ KAFKA_HOSTS: posthog-kafka+ REDIS_URL: "redis://posthog-redis:6379/"+ OBJECT_STORAGE_ENABLED: "true"+ OBJECT_STORAGE_ENDPOINT: "http://posthog-objectstorage:9000"+ OBJECT_STORAGE_ACCESS_KEY_ID: "${OBJECT_STORAGE_ACCESS_KEY_ID}"+ OBJECT_STORAGE_SECRET_ACCESS_KEY: "${OBJECT_STORAGE_SECRET_ACCESS_KEY}"+ OBJECT_STORAGE_BUCKET: posthog+ depends_on:+ - posthog-db+ - posthog-redis+ - posthog-clickhouse+ - posthog-kafka+ - posthog-objectstorage++ plugins:+ image: posthog/posthog:latest+ container_name: ${APP_NAME}-plugins+ restart: unless-stopped+ command: ./bin/plugin-server --no-restart-loop+ environment:+ DATABASE_URL: "postgres://posthog:${POSTGRES_PASSWORD}@posthog-db:5432/posthog"+ KAFKA_HOSTS: "posthog-kafka:9092"+ REDIS_URL: "redis://posthog-redis:6379/"+ CLICKHOUSE_HOST: posthog-clickhouse+ CLICKHOUSE_DATABASE: posthog+ CLICKHOUSE_SECURE: "false"+ CLICKHOUSE_VERIFY: "false"+ SITE_URL: "http://localhost:${HTTP_PORT}"+ SECRET_KEY: "${POSTHOG_SECRET}"+ ENCRYPTION_SALT_KEYS: "00beef0000beef0000beef0000beef00"+ OBJECT_STORAGE_ENABLED: "true"+ OBJECT_STORAGE_ENDPOINT: "http://posthog-objectstorage:9000"+ OBJECT_STORAGE_ACCESS_KEY_ID: "${OBJECT_STORAGE_ACCESS_KEY_ID}"+ OBJECT_STORAGE_SECRET_ACCESS_KEY: "${OBJECT_STORAGE_SECRET_ACCESS_KEY}"+ OBJECT_STORAGE_BUCKET: posthog+ depends_on:+ - posthog-db+ - posthog-redis+ - posthog-clickhouse+ - posthog-kafka+ - posthog-objectstorage++ posthog-db:+ image: postgres:12-alpine+ container_name: ${APP_NAME}-db+ restart: unless-stopped+ environment:+ POSTGRES_USER: posthog+ POSTGRES_DB: posthog+ POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"+ volumes:+ - posthog-postgres-data:/var/lib/postgresql/data+ healthcheck:+ test: ["CMD-SHELL", "pg_isready -U posthog"]+ interval: 10s+ timeout: 10s+ retries: 15++ posthog-redis:+ image: redis:6.2.7-alpine+ container_name: ${APP_NAME}-redis+ restart: unless-stopped+ command: redis-server --maxmemory-policy allkeys-lru --maxmemory 200mb+ volumes:+ - posthog-redis-data:/data+ healthcheck:+ test: ["CMD", "redis-cli", "ping"]+ interval: 10s+ timeout: 5s+ retries: 10++ posthog-zookeeper:+ image: zookeeper:3.7.0+ container_name: ${APP_NAME}-zookeeper+ restart: unless-stopped+ volumes:+ - posthog-zookeeper-data:/data+ - posthog-zookeeper-datalog:/datalog+ - posthog-zookeeper-logs:/logs++ posthog-kafka:+ image: ghcr.io/posthog/kafka-container:v2.8.2+ container_name: ${APP_NAME}-kafka+ restart: unless-stopped+ depends_on:+ - posthog-zookeeper+ environment:+ KAFKA_BROKER_ID: "1001"+ KAFKA_CFG_RESERVED_BROKER_MAX_ID: "1001"+ KAFKA_CFG_LISTENERS: "PLAINTEXT://:9092"+ KAFKA_CFG_ADVERTISED_LISTENERS: "PLAINTEXT://posthog-kafka:9092"+ KAFKA_CFG_ZOOKEEPER_CONNECT: "posthog-zookeeper:2181"+ ALLOW_PLAINTEXT_LISTENER: "yes"+ volumes:+ - posthog-kafka-data:/bitnami/kafka++ posthog-clickhouse:+ image: clickhouse/clickhouse-server:23.11.2.11-alpine+ container_name: ${APP_NAME}-clickhouse+ restart: unless-stopped+ depends_on:+ - posthog-kafka+ - posthog-zookeeper+ ulimits:+ nofile:+ soft: 262144+ hard: 262144+ volumes:+ - posthog-clickhouse-data:/var/lib/clickhouse++ posthog-objectstorage:+ image: minio/minio:RELEASE.2025-04-22T22-12-26Z+ container_name: ${APP_NAME}-objectstorage+ restart: unless-stopped+ environment:+ MINIO_ROOT_USER: "${OBJECT_STORAGE_ACCESS_KEY_ID}"+ MINIO_ROOT_PASSWORD: "${OBJECT_STORAGE_SECRET_ACCESS_KEY}"+ entrypoint: sh+ command: -c 'mkdir -p /data/posthog && minio server --address ":9000" --console-address ":9001" /data'+ volumes:+ - posthog-object-storage:/data+ healthcheck:+ test: ["CMD", "mc", "ready", "local"]+ interval: 10s+ timeout: 20s+ retries: 10++ volumes:+ posthog-postgres-data:+ posthog-redis-data:+ posthog-zookeeper-data:+ posthog-zookeeper-datalog:+ posthog-zookeeper-logs:+ posthog-kafka-data:+ posthog-clickhouse-data:+ posthog-object-storage:++files:+ - path: /compose/start+ mode: 493+ content: |+ #!/bin/bash+ /compose/wait+ ./bin/migrate+ ./bin/docker-server++ - path: /compose/wait+ mode: 493+ content: |+ #!/usr/bin/env python3++ import socket+ import time++ def loop():+ print("Waiting for ClickHouse and Postgres to be ready")+ try:+ with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:+ s.connect(('posthog-clickhouse', 9000))+ print("Clickhouse is ready")+ with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:+ s.connect(('posthog-db', 5432))+ print("Postgres is ready")+ except ConnectionRefusedError as e:+ time.sleep(5)+ loop()++ loop()++ - path: /docker-entrypoint-initdb.d/init-db.sh+ mode: 493+ content: |+ #!/bin/bash+ set -e++ # Only relevant inside the ClickHouse container; no-op elsewhere.+ if [ -d /var/lib/clickhouse ]; then+ mkdir -p /var/lib/clickhouse/format_schemas+ cp -r /idl/* /var/lib/clickhouse/format_schemas/+ fi++ - path: /idl/events_json.json+ content: |+ {+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "$id": "file://posthog/idl/events_json.json",+ "title": "events_json",+ "description": "Event schema that is destined for ClickHouse",+ "type": "object",+ "properties": {+ "uuid": { "type": "string" },+ "event": { "type": "string" },+ "properties": { "type": "string" },+ "timestamp": { "type": "number" },+ "team_id": { "type": "number" },+ "distinct_id": { "type": "string" },+ "elements_chain": { "type": "string" },+ "created_at": { "type": "number" },+ "person_id": { "type": "string" },+ "person_created_at": { "type": "number" },+ "person_properties": { "type": "string" },+ "group0_properties": { "type": "string" },+ "group1_properties": { "type": "string" },+ "group2_properties": { "type": "string" },+ "group3_properties": { "type": "string" },+ "group4_properties": { "type": "string" },+ "group0_created_at": { "type": "number" },+ "group1_created_at": { "type": "number" },+ "group2_created_at": { "type": "number" },+ "group3_created_at": { "type": "number" },+ "group4_created_at": { "type": "number" }+ },+ "required": ["uuid", "event", "properties", "timestamp", "team_id"]+ }++ - path: /idl/events_dead_letter_queue.json+ content: |+ {+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "$id": "file://posthog/idl/events_dead_letter_queue.json",+ "title": "events_dead_letter_queue",+ "description": "Events that failed to be validated or processed and are sent to the DLQ",+ "type": "object",+ "properties": {+ "id": { "type": "string" },+ "event_uuid": { "type": "string" },+ "event": { "type": "string" },+ "properties": { "type": "string" },+ "distinct_id": { "type": "string" },+ "team_id": { "type": "number" },+ "elements_chain": { "type": "string" },+ "created_at": { "type": "number" },+ "ip": { "type": "string" },+ "site_url": { "type": "string" },+ "now": { "type": "number" },+ "raw_payload": { "type": "string" },+ "error_timestamp": { "type": "number" },+ "error_location": { "type": "string" },+ "error": { "type": "string" },+ "tags": { "type": "array", "items": { "type": "string" } }+ },+ "required": ["raw_payload"]+ }++ - path: /idl/groups.json+ content: |+ {+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "$id": "file://posthog/idl/groups.json",+ "title": "groups",+ "description": "Groups schema that is destined for ClickHouse",+ "type": "object",+ "properties": {+ "group_type_index": { "type": "number" },+ "group_key": { "type": "string" },+ "created_at": { "type": "number" },+ "team_id": { "type": "number" },+ "group_properties": { "type": "string" }+ },+ "required": ["group_type_index", "group_key", "created_at", "team_id", "group_properties"]+ }++ - path: /idl/person.json+ content: |+ {+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "$id": "file://posthog/idl/person.json",+ "title": "person",+ "description": "Person schema that is destined for ClickHouse",+ "type": "object",+ "properties": {+ "id": { "type": "string" },+ "created_at": { "type": "number" },+ "team_id": { "type": "number" },+ "properties": { "type": "string" },+ "is_identified": { "type": "boolean" },+ "is_deleted": { "type": "boolean" },+ "version": { "type": "number" }+ },+ "required": ["id", "created_at", "team_id", "properties", "is_identified", "is_deleted", "version"]+ }++ - path: /idl/person_distinct_id.json+ content: |+ {+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "$id": "file://posthog/idl/person_distinct_id.json",+ "title": "person_distinct_id",+ "description": "Person distinct id schema that is destined for ClickHouse",+ "type": "object",+ "properties": {+ "distinct_id": { "type": "string" },+ "person_id": { "type": "string" },+ "team_id": { "type": "number" },+ "_sign": { "type": "number" },+ "is_deleted": { "type": "boolean" }+ },+ "required": ["distinct_id", "person_id", "team_id", "_sign", "is_deleted"]+ }++ - path: /idl/person_distinct_id2.json+ content: |+ {+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "$id": "file://posthog/idl/person_distinct_id2.json",+ "title": "person_distinct_id2",+ "description": "Person distinct id2 schema that is destined for ClickHouse",+ "type": "object",+ "properties": {+ "distinct_id": { "type": "string" },+ "person_id": { "type": "string" },+ "team_id": { "type": "number" },+ "version": { "type": "number" },+ "is_deleted": { "type": "boolean" }+ },+ "required": ["distinct_id", "person_id", "team_id", "version", "is_deleted"]+ }++ - path: /idl/plugin_log_entries.json+ content: |+ {+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "$id": "file://posthog/idl/plugin_log_entries.json",+ "title": "plugin_log_entries",+ "description": "Plugin log entries that are destined for ClickHouse",+ "type": "object",+ "properties": {+ "id": { "type": "string" },+ "team_id": { "type": "number" },+ "plugin_id": { "type": "number" },+ "plugin_config_id": { "type": "number" },+ "timestamp": { "type": "number" },+ "source": { "type": "string" },+ "type": { "type": "string" },+ "message": { "type": "string" },+ "instance_id": { "type": "string" }+ },+ "required": ["id", "team_id", "plugin_id", "plugin_config_id", "timestamp", "source", "type", "message", "instance_id"]+ }++ - path: /etc/clickhouse-server/config.d/clickhouse-config.xml+ content: |+ <?xml version="1.0"?>+ <clickhouse>+ <format_schema_path>/var/lib/clickhouse/format_schemas/</format_schema_path>+ <zookeeper>+ <node>+ <host>posthog-zookeeper</host>+ <port>2181</port>+ </node>+ </zookeeper>+ <macros>+ <shard>01</shard>+ <replica>ch1</replica>+ </macros>+ <remote_servers>+ <posthog>+ <shard>+ <replica>+ <host>posthog-clickhouse</host>+ <port>9000</port>+ </replica>+ </shard>+ </posthog>+ </remote_servers>+ <distributed_ddl>+ <path>/clickhouse/task_queue/ddl</path>+ </distributed_ddl>+ </clickhouse>++ - path: /etc/clickhouse-server/users.d/clickhouse-users.xml+ content: |+ <?xml version="1.0"?>+ <clickhouse>+ <profiles>+ <default>+ <max_memory_usage>10000000000</max_memory_usage>+ <load_balancing>random</load_balancing>+ <allow_nondeterministic_mutations>1</allow_nondeterministic_mutations>+ </default>+ </profiles>+ <users>+ <default>+ <password></password>+ <networks>+ <ip>::/0</ip>+ </networks>+ <profile>default</profile>+ <quota>default</quota>+ </default>+ </users>+ </clickhouse>++post_install: |+ PostHog is installed and running!++ - Web UI: http://your-server:${HTTP_PORT}+ - Open the URL and complete the first signup. The FIRST account you create+ sets up the organization and becomes the instance admin.++ Heads up — this is a resource-heavy stack:+ - It runs the PostHog web app plus a Celery worker and the plugin server,+ PostgreSQL, Redis, ClickHouse (with ZooKeeper + Kafka for event ingestion),+ and a built-in S3-compatible object store (used for session recordings).+ - ClickHouse and Kafka are memory-hungry: give this app at least 4GB of RAM+ and 20GB of disk. The first start runs database migrations and can take a+ few minutes before the UI responds.++ For production:+ - Attach a real domain to this app, then update the web/worker/plugins+ SITE_URL environment variable (currently http://localhost:${HTTP_PORT})+ to your public https:// URL. Sign-in links, the tracking snippet, and+ session replay all depend on SITE_URL matching the address users hit.diff --git a/frontend/src/pages/Templates.jsx b/frontend/src/pages/Templates.jsxindex 0f5cade9..2623efdd 100644--- a/frontend/src/pages/Templates.jsx+++ b/frontend/src/pages/Templates.jsx@@ -117,6 +117,14 @@ const TEMPLATE_ICONS = {'authentik': Shield,'wg-easy': Shield,'pihole': Shield,+ // Business / niche+ 'chatwoot': MessageSquare,+ 'documenso': FileText,+ 'metabase': BarChart3,+ 'posthog': TrendingUp,+ 'nodebb': Users,+ 'linkding': BookOpen,+ 'karakeep': BookOpen,// Database tools'phpmyadmin': Database,'pgadmin': Database,