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 2 identity, monitoring, search & networking templates
Juan Denis6da29337512c
diff --git a/backend/templates/authentik.yaml b/backend/templates/authentik.yamlnew file mode 100644index 00000000..c695257e--- /dev/null+++ b/backend/templates/authentik.yaml@@ -0,0 +1,152 @@+id: authentik+name: Authentik+version: "1.0"+description: Open-source identity provider for single sign-on with OIDC, SAML, and LDAP.+icon: data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTEyIDIyczgtNCA4LTEwVjVsLTgtMy04IDN2N2MwIDYgOCAxMCA4IDEweiIvPjwvc3ZnPg==+website: https://goauthentik.io+documentation: https://docs.goauthentik.io+categories:+ - security+ - identity+ - sso++variables:+ - name: HTTP_PORT+ description: Port for the Authentik web UI (auto-assigned)+ type: port+ default: "9000"+ hidden: true+ - name: SECRET_KEY+ description: Secret key used to sign sessions and tokens (auto-generated)+ type: random+ length: 64+ hidden: true+ - name: PG_PASS+ description: PostgreSQL password (auto-generated)+ type: password+ length: 32+ hidden: true+ - name: BOOTSTRAP_TOKEN+ description: Initial API token provisioned on first boot (auto-generated)+ type: random+ length: 48+ hidden: true+ - name: ADMIN_PASSWORD+ description: Default admin (akadmin) password (auto-generated)+ type: password+ length: 24++ports:+ - port: "${HTTP_PORT}"+ protocol: http+ description: Authentik Web UI++requirements:+ memory: 1GB+ storage: 2GB++compose:+ services:+ server:+ image: ghcr.io/goauthentik/server:2024.10.5+ container_name: ${APP_NAME}+ restart: unless-stopped+ command: server+ ports:+ - "${HTTP_PORT}:9000"+ environment:+ AUTHENTIK_SECRET_KEY: "${SECRET_KEY}"+ AUTHENTIK_POSTGRESQL__HOST: "postgresql"+ AUTHENTIK_POSTGRESQL__USER: "authentik"+ AUTHENTIK_POSTGRESQL__NAME: "authentik"+ AUTHENTIK_POSTGRESQL__PASSWORD: "${PG_PASS}"+ AUTHENTIK_REDIS__HOST: "redis"+ AUTHENTIK_BOOTSTRAP_PASSWORD: "${ADMIN_PASSWORD}"+ AUTHENTIK_BOOTSTRAP_TOKEN: "${BOOTSTRAP_TOKEN}"+ volumes:+ - authentik-media:/media+ - authentik-templates:/templates+ depends_on:+ - postgresql+ - redis+ healthcheck:+ test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:9000/-/health/live/ || exit 1"]+ interval: 30s+ timeout: 10s+ retries: 5+ start_period: 60s++ worker:+ image: ghcr.io/goauthentik/server:2024.10.5+ container_name: ${APP_NAME}-worker+ restart: unless-stopped+ command: worker+ environment:+ AUTHENTIK_SECRET_KEY: "${SECRET_KEY}"+ AUTHENTIK_POSTGRESQL__HOST: "postgresql"+ AUTHENTIK_POSTGRESQL__USER: "authentik"+ AUTHENTIK_POSTGRESQL__NAME: "authentik"+ AUTHENTIK_POSTGRESQL__PASSWORD: "${PG_PASS}"+ AUTHENTIK_REDIS__HOST: "redis"+ AUTHENTIK_BOOTSTRAP_PASSWORD: "${ADMIN_PASSWORD}"+ AUTHENTIK_BOOTSTRAP_TOKEN: "${BOOTSTRAP_TOKEN}"+ volumes:+ - /var/run/docker.sock:/var/run/docker.sock:ro+ - authentik-media:/media+ - authentik-templates:/templates+ - authentik-certs:/certs+ depends_on:+ - postgresql+ - redis++ postgresql:+ image: postgres:16-alpine+ container_name: ${APP_NAME}-postgresql+ restart: unless-stopped+ environment:+ POSTGRES_DB: authentik+ POSTGRES_USER: authentik+ POSTGRES_PASSWORD: "${PG_PASS}"+ volumes:+ - authentik-db:/var/lib/postgresql/data+ healthcheck:+ test: ["CMD-SHELL", "pg_isready -U authentik -d authentik"]+ interval: 10s+ timeout: 5s+ retries: 5++ redis:+ image: redis:7-alpine+ container_name: ${APP_NAME}-redis+ restart: unless-stopped+ command: --save 60 1 --loglevel warning+ volumes:+ - authentik-redis:/data+ healthcheck:+ test: ["CMD-SHELL", "redis-cli ping | grep -q PONG"]+ interval: 10s+ timeout: 5s+ retries: 5++ volumes:+ authentik-db:+ authentik-redis:+ authentik-media:+ authentik-templates:+ authentik-certs:++post_install: |+ Authentik is installed and running!++ - Web UI: http://your-server:${HTTP_PORT}+ - First-run setup: http://your-server:${HTTP_PORT}/if/flow/initial-setup/+ - Initial admin user: akadmin+ - Admin password: ${ADMIN_PASSWORD}++ An API token (${BOOTSTRAP_TOKEN}) is provisioned automatically for+ programmatic access.++ For production use, attach a real domain and serve Authentik over HTTPS.+ To use Authentik as an OIDC/SAML identity provider for another app,+ create a Provider and an Application from the admin interface, then point+ that app's SSO settings at this server.diff --git a/backend/templates/beszel.yaml b/backend/templates/beszel.yamlnew file mode 100644index 00000000..e58ff027--- /dev/null+++ b/backend/templates/beszel.yaml@@ -0,0 +1,57 @@+id: beszel+name: Beszel+version: "1.0"+description: Lightweight server monitoring hub with historical metrics and alerts.+icon: data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBvbHlsaW5lIHBvaW50cz0iMjIgMTIgMTggMTIgMTUgMjEgOSAzIDYgMTIgMiAxMiIvPjwvc3ZnPg==+website: https://beszel.dev+documentation: https://beszel.dev/guide/getting-started+categories:+ - monitoring++variables:+ - name: HTTP_PORT+ description: Port for the Beszel web UI (auto-assigned)+ type: port+ default: "8090"+ hidden: true++ports:+ - port: "${HTTP_PORT}"+ protocol: http+ description: Beszel Web UI++requirements:+ memory: 256MB+ storage: 1GB++compose:+ services:+ beszel:+ image: henrygd/beszel:latest+ container_name: ${APP_NAME}+ restart: unless-stopped+ ports:+ - "${HTTP_PORT}:8090"+ volumes:+ - beszel-data:/beszel_data+ - beszel-socket:/beszel_socket+ healthcheck:+ test: ["CMD", "/beszel", "health", "--url", "http://127.0.0.1:8090"]+ interval: 30s+ timeout: 20s+ retries: 10+ start_period: 5s++ volumes:+ beszel-data:+ beszel-socket:++post_install: |+ Beszel is installed and running!++ This is the monitoring HUB. Agents are installed separately on each host.++ - Web UI: http://your-server:${HTTP_PORT}+ - Open the UI and create your first (admin) account.+ - Then add systems: each monitored host runs the henrygd/beszel-agent+ container using the public key shown in the UI for that system.diff --git a/backend/templates/gotify.yaml b/backend/templates/gotify.yamlnew file mode 100644index 00000000..59d4fb09--- /dev/null+++ b/backend/templates/gotify.yaml@@ -0,0 +1,69 @@+id: gotify+name: Gotify+version: "1.0"+description: Self-hosted push notification server with Android client support.+icon: data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiPjxwYXRoIGQ9Ik0xOCA4QTYgNiAwIDAgMCA2IDhjMCA3LTMgOS0zIDloMTJzLTMtMi0zLTl6Ii8+PHBhdGggZD0iTTEwLjMgMjFhMiAyIDAgMCAwIDMuNCAwIi8+PC9zdmc++website: https://gotify.net+documentation: https://gotify.net/docs/install+categories:+ - notifications+ - messaging++variables:+ - name: HTTP_PORT+ description: Port for the Gotify web UI and API (auto-assigned)+ type: port+ default: "8080"+ 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: Gotify Web UI & API++requirements:+ memory: 128MB+ storage: 500MB++compose:+ services:+ gotify:+ image: gotify/server:2.7.3+ container_name: ${APP_NAME}+ restart: unless-stopped+ ports:+ - "${HTTP_PORT}:80"+ environment:+ GOTIFY_DEFAULTUSER_NAME: "${ADMIN_USERNAME}"+ GOTIFY_DEFAULTUSER_PASS: "${ADMIN_PASSWORD}"+ GOTIFY_DATABASE_DIALECT: sqlite3+ GOTIFY_DATABASE_CONNECTION: data/gotify.db+ GOTIFY_SERVER_PORT: "80"+ GOTIFY_REGISTRATION: "false"+ volumes:+ - gotify-data:/app/data+ healthcheck:+ test: ["CMD", "curl", "-f", "http://127.0.0.1:80/health"]+ interval: 5s+ timeout: 20s+ retries: 10++ volumes:+ gotify-data:++post_install: |+ Gotify is installed and running!++ - Web UI: http://your-server:${HTTP_PORT}+ - Default login: ${ADMIN_USERNAME} / ${ADMIN_PASSWORD}++ Download the Android app and point it at http://your-server:${HTTP_PORT}.+ Create application tokens and send notifications via the REST API.\ No newline at end of filediff --git a/backend/templates/meilisearch.yaml b/backend/templates/meilisearch.yamlnew file mode 100644index 00000000..f305d25d--- /dev/null+++ b/backend/templates/meilisearch.yaml@@ -0,0 +1,65 @@+id: meilisearch+name: Meilisearch+version: "1.0"+description: Lightning-fast, typo-tolerant search engine that many apps rely on for instant full-text search.+icon: data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PGNpcmNsZSBjeD0iMTEiIGN5PSIxMSIgcj0iOCIvPjxsaW5lIHgxPSIyMSIgeTE9IjIxIiB4Mj0iMTYuNjUiIHkyPSIxNi42NSIvPjwvc3ZnPg==+website: https://www.meilisearch.com+documentation: https://www.meilisearch.com/docs+categories:+ - search+ - database++variables:+ - name: HTTP_PORT+ description: Port for the Meilisearch HTTP API (auto-assigned)+ type: port+ default: "7700"+ hidden: true+ - name: MASTER_KEY+ description: Master key protecting the Meilisearch API (auto-generated)+ type: random+ length: 48+ hidden: true++ports:+ - port: "${HTTP_PORT}"+ protocol: http+ description: Meilisearch HTTP API++requirements:+ memory: 512MB+ storage: 1GB++compose:+ services:+ meilisearch:+ image: getmeili/meilisearch:v1.12+ container_name: ${APP_NAME}+ restart: unless-stopped+ ports:+ - "${HTTP_PORT}:7700"+ environment:+ MEILI_MASTER_KEY: "${MASTER_KEY}"+ MEILI_ENV: "production"+ MEILI_NO_ANALYTICS: "true"+ volumes:+ - meilisearch-data:/meili_data+ healthcheck:+ test: ["CMD", "curl", "-fsS", "http://127.0.0.1:7700/health"]+ interval: 10s+ timeout: 10s+ retries: 5+ start_period: 20s++ volumes:+ meilisearch-data:++post_install: |+ Meilisearch is installed and running!++ - API endpoint: http://your-server:${HTTP_PORT}+ - Master key: ${MASTER_KEY}++ Send the master key as the `Authorization: Bearer ${MASTER_KEY}` header on every+ request. Create scoped API keys from the `/keys` endpoint for your apps instead of+ sharing the master key directly.diff --git a/backend/templates/ntfy.yaml b/backend/templates/ntfy.yamlnew file mode 100644index 00000000..407a3402--- /dev/null+++ b/backend/templates/ntfy.yaml@@ -0,0 +1,66 @@+id: ntfy+name: ntfy+version: "1.0"+description: Simple HTTP-based pub/sub service that pushes notifications to your phone or desktop via a POST.+icon: data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTE4IDhBNiA2IDAgMCAwIDYgOGMwIDctMyA5LTMgOWgxOHMtMy0yLTMtOXoiLz48cGF0aCBkPSJNMTMuNzMgMjFhMiAyIDAgMCAxLTMuNDYgMCIvPjwvc3ZnPg==+website: https://ntfy.sh+documentation: https://docs.ntfy.sh+categories:+ - notifications+ - messaging++variables:+ - name: HTTP_PORT+ description: Port for the ntfy web UI and API (auto-assigned)+ type: port+ default: "80"+ hidden: true++ports:+ - port: "${HTTP_PORT}"+ protocol: http+ description: ntfy Web UI & API++requirements:+ memory: 128MB+ storage: 500MB++compose:+ services:+ ntfy:+ image: binwiederhier/ntfy:latest+ container_name: ${APP_NAME}+ restart: unless-stopped+ command: ["serve"]+ ports:+ - "${HTTP_PORT}:80"+ environment:+ NTFY_BASE_URL: "http://localhost:${HTTP_PORT}"+ NTFY_BEHIND_PROXY: "true"+ NTFY_AUTH_FILE: "/var/lib/ntfy/user.db"+ NTFY_AUTH_DEFAULT_ACCESS: "deny-all"+ NTFY_CACHE_FILE: "/var/cache/ntfy/cache.db"+ volumes:+ - ntfy-cache:/var/cache/ntfy+ - ntfy-lib:/var/lib/ntfy+ healthcheck:+ test: ["CMD-SHELL", "wget -q --tries=1 http://127.0.0.1:80/v1/health -O - | grep -q '\"healthy\":true'"]+ interval: 30s+ timeout: 10s+ retries: 5+ start_period: 20s++ volumes:+ ntfy-cache:+ ntfy-lib:++post_install: |+ ntfy is installed and running!++ - Web UI: http://your-server:${HTTP_PORT}++ Access is locked down (deny-all) by default. Create an admin user with:+ docker exec ${APP_NAME} ntfy user add --role=admin <name>++ Then subscribe to a topic in the web UI / mobile app and publish messages with a+ simple POST: curl -d "Hello" http://your-server:${HTTP_PORT}/mytopicdiff --git a/backend/templates/pihole.yaml b/backend/templates/pihole.yamlnew file mode 100644index 00000000..76a98aab--- /dev/null+++ b/backend/templates/pihole.yaml@@ -0,0 +1,66 @@+id: pihole+name: Pi-hole+version: "1.0"+description: Network-wide ad-blocking DNS sinkhole with a web dashboard.+icon: data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBvbHlnb24gcG9pbnRzPSIyMiAzIDIgMyAxMCAxMi40NiAxMCAxOSAxNCAyMSAxNCAxMi40NiAyMiAzIi8+PC9zdmc++website: https://pi-hole.net+documentation: https://docs.pi-hole.net+categories:+ - networking+ - dns+ - security++variables:+ - name: HTTP_PORT+ description: Port for the Pi-hole web dashboard (auto-assigned)+ type: port+ default: "80"+ hidden: true+ - name: WEB_PASSWORD+ description: Web dashboard admin password (auto-generated)+ type: password+ length: 24++ports:+ - port: "${HTTP_PORT}"+ protocol: http+ description: Pi-hole Web Dashboard++requirements:+ memory: 512MB+ storage: 1GB++compose:+ services:+ pihole:+ image: pihole/pihole:latest+ container_name: ${APP_NAME}+ restart: unless-stopped+ ports:+ - "${HTTP_PORT}:80"+ - "53:53/tcp"+ - "53:53/udp"+ environment:+ TZ: "Etc/UTC"+ FTLCONF_webserver_api_password: "${WEB_PASSWORD}"+ FTLCONF_dns_listeningMode: "all"+ cap_add:+ - NET_ADMIN+ - SYS_NICE+ volumes:+ - pihole-config:/etc/pihole++ volumes:+ pihole-config:++post_install: |+ Pi-hole is installed and running!++ - Dashboard: http://your-server:${HTTP_PORT}/admin+ - Password: ${WEB_PASSWORD}++ Point your router's (or each client's) DNS at this server's IP to enable+ network-wide ad blocking.++ NOTE: Binding host port 53 can clash with systemd-resolved. If the DNS+ ports fail to bind, you may need to free port 53 on the host first.diff --git a/backend/templates/searxng.yaml b/backend/templates/searxng.yamlnew file mode 100644index 00000000..a3b06c16--- /dev/null+++ b/backend/templates/searxng.yaml@@ -0,0 +1,83 @@+id: searxng+name: SearXNG+version: "1.0"+description: Privacy-respecting metasearch engine that aggregates results from many sources without tracking you.+icon: data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PGNpcmNsZSBjeD0iMTEiIGN5PSIxMSIgcj0iOCIvPjxsaW5lIHgxPSIyMSIgeTE9IjIxIiB4Mj0iMTYuNjUiIHkyPSIxNi42NSIvPjwvc3ZnPg==+website: https://docs.searxng.org+documentation: https://docs.searxng.org/admin/installation-docker.html+categories:+ - search+ - privacy++variables:+ - name: HTTP_PORT+ description: Port for the SearXNG web UI (auto-assigned)+ type: port+ default: "8080"+ hidden: true+ - name: SECRET_KEY+ description: Secret key used to sign SearXNG sessions (auto-generated)+ type: random+ length: 48+ hidden: true++ports:+ - port: "${HTTP_PORT}"+ protocol: http+ description: SearXNG Web UI++requirements:+ memory: 512MB+ storage: 1GB++compose:+ services:+ searxng:+ image: searxng/searxng:latest+ container_name: ${APP_NAME}+ restart: unless-stopped+ ports:+ - "${HTTP_PORT}:8080"+ environment:+ SEARXNG_BASE_URL: "http://localhost:${HTTP_PORT}/"+ SEARXNG_SECRET: "${SECRET_KEY}"+ SEARXNG_REDIS_URL: "redis://redis:6379/0"+ volumes:+ - searxng-config:/etc/searxng+ cap_add:+ - CHOWN+ - SETGID+ - SETUID+ depends_on:+ - redis+ healthcheck:+ test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1:8080/healthz"]+ interval: 10s+ timeout: 10s+ retries: 5+ start_period: 20s+ redis:+ image: valkey/valkey:8-alpine+ container_name: ${APP_NAME}-redis+ restart: unless-stopped+ command: valkey-server --save 30 1 --loglevel warning+ volumes:+ - searxng-redis:/data+ healthcheck:+ test: ["CMD", "valkey-cli", "ping"]+ interval: 10s+ timeout: 5s+ retries: 5++ volumes:+ searxng-config:+ searxng-redis:++post_install: |+ SearXNG is installed and running!++ - Web UI: http://your-server:${HTTP_PORT}++ The first start writes a default configuration to /etc/searxng (the searxng-config+ volume). To enable the JSON API for programmatic use, add `- json` under+ `search.formats` in /etc/searxng/settings.yml, then restart the container.diff --git a/backend/templates/signoz.yaml b/backend/templates/signoz.yamlnew file mode 100644index 00000000..970a6731--- /dev/null+++ b/backend/templates/signoz.yaml@@ -0,0 +1,489 @@+id: signoz+name: SigNoz+version: "1.0"+description: OpenTelemetry-native observability platform for traces, metrics, and logs (an open-source APM alternative to Datadog).+icon: data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBvbHlsaW5lIHBvaW50cz0iMjIgMTIgMTggMTIgMTUgMjEgOSAzIDYgMTIgMiAxMiIvPjwvc3ZnPg==+website: https://signoz.io+documentation: https://signoz.io/docs/introduction/+categories:+ - monitoring+ - observability+ - apm++variables:+ - name: HTTP_PORT+ description: Port for the SigNoz web UI (auto-assigned)+ type: port+ default: "8080"+ hidden: true+ - name: JWT_SECRET+ description: Secret used to sign SigNoz session tokens (auto-generated)+ type: random+ length: 64+ hidden: true++ports:+ - port: "${HTTP_PORT}"+ protocol: http+ description: SigNoz Web UI+ - port: "4317"+ protocol: tcp+ description: OTLP gRPC ingestion endpoint+ - port: "4318"+ protocol: http+ description: OTLP HTTP ingestion endpoint++requirements:+ memory: 2GB+ storage: 10GB++compose:+ services:+ init-clickhouse:+ image: clickhouse/clickhouse-server:25.5.6-alpine+ container_name: ${APP_NAME}-init-clickhouse+ restart: on-failure+ command:+ - bash+ - -c+ - |+ version="v0.0.1"+ node_os=$$(uname -s | tr '[:upper:]' '[:lower:]')+ node_arch=$$(uname -m | sed s/aarch64/arm64/ | sed s/x86_64/amd64/)+ echo "Fetching histogram-binary for $${node_os}/$${node_arch}"+ cd /tmp+ wget -O histogram-quantile.tar.gz "https://github.com/SigNoz/signoz/releases/download/histogram-quantile%2F$${version}/histogram-quantile_$${node_os}_$${node_arch}.tar.gz"+ tar -xvzf histogram-quantile.tar.gz+ mkdir -p /var/lib/clickhouse/user_scripts/histogramQuantile+ mv histogram-quantile /var/lib/clickhouse/user_scripts/histogramQuantile+ volumes:+ - signoz-clickhouse:/var/lib/clickhouse/++ zookeeper:+ image: signoz/zookeeper:3.9.3+ container_name: ${APP_NAME}-zookeeper+ restart: unless-stopped+ user: root+ environment:+ ALLOW_ANONYMOUS_LOGIN: "yes"+ ZOO_AUTOPURGE_INTERVAL: "1"+ ZOO_ENABLE_PROMETHEUS_METRICS: "yes"+ ZOO_PROMETHEUS_METRICS_PORT_NUMBER: "9141"+ volumes:+ - signoz-zookeeper:/bitnami/zookeeper+ healthcheck:+ test: ["CMD-SHELL", "curl -s -m 2 http://localhost:8080/commands/ruok | grep error | grep null"]+ interval: 30s+ timeout: 5s+ retries: 3++ clickhouse:+ image: clickhouse/clickhouse-server:25.5.6-alpine+ container_name: ${APP_NAME}-clickhouse+ restart: unless-stopped+ tty: true+ depends_on:+ init-clickhouse:+ condition: service_completed_successfully+ zookeeper:+ condition: service_healthy+ environment:+ CLICKHOUSE_SKIP_USER_SETUP: "1"+ ulimits:+ nproc: 65535+ nofile:+ soft: 262144+ hard: 262144+ volumes:+ - signoz-clickhouse:/var/lib/clickhouse/+ healthcheck:+ test: ["CMD", "wget", "--spider", "-q", "0.0.0.0:8123/ping"]+ interval: 30s+ timeout: 5s+ retries: 3++ schema-migrator-sync:+ image: signoz/signoz-schema-migrator:v0.129.7+ container_name: ${APP_NAME}-schema-migrator-sync+ restart: on-failure+ command:+ - sync+ - --dsn=tcp://clickhouse:9000+ - --up=+ depends_on:+ clickhouse:+ condition: service_healthy++ schema-migrator-async:+ image: signoz/signoz-schema-migrator:v0.129.7+ container_name: ${APP_NAME}-schema-migrator-async+ restart: on-failure+ command:+ - async+ - --dsn=tcp://clickhouse:9000+ - --up=+ depends_on:+ clickhouse:+ condition: service_healthy+ schema-migrator-sync:+ condition: service_completed_successfully++ signoz:+ image: signoz/signoz:v0.97.1+ container_name: ${APP_NAME}+ restart: unless-stopped+ command:+ - --config=/root/config/prometheus.yml+ depends_on:+ clickhouse:+ condition: service_healthy+ schema-migrator-sync:+ condition: service_completed_successfully+ ports:+ - "${HTTP_PORT}:8080"+ environment:+ SIGNOZ_JWT_SECRET: "${JWT_SECRET}"+ SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_DSN: "tcp://clickhouse:9000"+ SIGNOZ_SQLSTORE_SQLITE_PATH: /var/lib/signoz/signoz.db+ DASHBOARDS_PATH: /root/config/dashboards+ STORAGE: clickhouse+ GODEBUG: netdns=go+ DEPLOYMENT_TYPE: docker-standalone-amd+ SIGNOZ_STATSREPORTER_ENABLED: "true"+ SIGNOZ_EMAILING_ENABLED: "false"+ SIGNOZ_ALERTMANAGER_PROVIDER: signoz+ DOT_METRICS_ENABLED: "true"+ volumes:+ - signoz-sqlite:/var/lib/signoz/+ healthcheck:+ test: ["CMD", "wget", "--spider", "-q", "localhost:8080/api/v1/health"]+ interval: 30s+ timeout: 5s+ retries: 3++ otel-collector:+ image: signoz/signoz-otel-collector:v0.129.7+ container_name: ${APP_NAME}-otel-collector+ restart: unless-stopped+ command:+ - --config=/etc/otel-collector-config.yaml+ - --manager-config=/etc/manager-config.yaml+ - --copy-path=/var/tmp/collector-config.yaml+ - --feature-gates=-pkg.translator.prometheus.NormalizeName+ depends_on:+ clickhouse:+ condition: service_healthy+ schema-migrator-sync:+ condition: service_completed_successfully+ signoz:+ condition: service_healthy+ ports:+ - "4317:4317"+ - "4318:4318"+ environment:+ OTEL_RESOURCE_ATTRIBUTES: host.name=signoz-host,os.type=linux+ LOW_CARDINAL_EXCEPTION_GROUPING: "false"+ healthcheck:+ test: ["CMD-SHELL", "exec 6<> /dev/tcp/localhost/13133"]+ interval: 30s+ timeout: 5s+ retries: 3++ volumes:+ signoz-clickhouse:+ signoz-zookeeper:+ signoz-sqlite:++files:+ - path: /etc/clickhouse-server/custom-function.xml+ content: |+ <functions>+ <function>+ <type>executable</type>+ <name>histogramQuantile</name>+ <return_type>Float64</return_type>+ <argument>+ <type>Array(Float64)</type>+ <name>buckets</name>+ </argument>+ <argument>+ <type>Array(Float64)</type>+ <name>counts</name>+ </argument>+ <argument>+ <type>Float64</type>+ <name>quantile</name>+ </argument>+ <format>CSV</format>+ <command>./histogramQuantile</command>+ </function>+ </functions>++ - path: /etc/clickhouse-server/config.d/cluster.xml+ content: |+ <?xml version="1.0"?>+ <clickhouse>+ <zookeeper>+ <node index="1">+ <host>zookeeper</host>+ <port>2181</port>+ </node>+ </zookeeper>+ <remote_servers>+ <cluster>+ <shard>+ <replica>+ <host>clickhouse</host>+ <port>9000</port>+ </replica>+ </shard>+ </cluster>+ </remote_servers>+ </clickhouse>++ - path: /etc/clickhouse-server/users.xml+ content: |+ <?xml version="1.0"?>+ <clickhouse>+ <profiles>+ <default>+ <max_memory_usage>10000000000</max_memory_usage>+ <load_balancing>random</load_balancing>+ </default>+ <readonly>+ <readonly>1</readonly>+ </readonly>+ </profiles>+ <users>+ <default>+ <password></password>+ <networks>+ <ip>::/0</ip>+ </networks>+ <profile>default</profile>+ <quota>default</quota>+ </default>+ </users>+ <quotas>+ <default>+ <interval>+ <duration>3600</duration>+ <queries>0</queries>+ <errors>0</errors>+ <result_rows>0</result_rows>+ <read_rows>0</read_rows>+ <execution_time>0</execution_time>+ </interval>+ </default>+ </quotas>+ </clickhouse>++ - path: /etc/clickhouse-server/config.xml+ content: |+ <?xml version="1.0"?>+ <clickhouse>+ <max_connections>4096</max_connections>+ <keep_alive_timeout>3</keep_alive_timeout>+ <max_concurrent_queries>100</max_concurrent_queries>+ <mark_cache_size>5368709120</mark_cache_size>+ <mmap_cache_size>1000</mmap_cache_size>+ <compiled_expression_cache_size>134217728</compiled_expression_cache_size>+ <compiled_expression_cache_elements_size>10000</compiled_expression_cache_elements_size>+ <custom_settings_prefixes></custom_settings_prefixes>+ <dictionaries_config>*_dictionary.xml</dictionaries_config>+ <user_defined_executable_functions_config>*function.xml</user_defined_executable_functions_config>+ <user_scripts_path>/var/lib/clickhouse/user_scripts/</user_scripts_path>+ <http_port>8123</http_port>+ <tcp_port>9000</tcp_port>+ <mysql_port>9004</mysql_port>+ <postgresql_port>9005</postgresql_port>+ <interserver_http_port>9009</interserver_http_port>+ <logger>+ <level>information</level>+ <formatting>+ <type>json</type>+ </formatting>+ </logger>+ <macros>+ <shard>01</shard>+ <replica>example01-01-1</replica>+ </macros>+ <prometheus>+ <endpoint>/metrics</endpoint>+ <port>9363</port>+ <metrics>true</metrics>+ <events>true</events>+ <asynchronous_metrics>true</asynchronous_metrics>+ <status_info>true</status_info>+ </prometheus>+ <opentelemetry_span_log>+ <engine>engine MergeTree+ partition by toYYYYMM(finish_date)+ order by (finish_date, finish_time_us, trace_id)</engine>+ </opentelemetry_span_log>+ <query_masking_rules>+ <rule>+ <name>hide encrypt/decrypt arguments</name>+ <regexp>((?:aes_)?(?:encrypt|decrypt)(?:_mysql)?)\s*\(\s*(?:'(?:\\'|.)+'|.*?)\s*\)</regexp>+ <replace>\1(???)</replace>+ </rule>+ </query_masking_rules>+ <send_crash_reports>+ <enabled>false</enabled>+ <anonymize>false</anonymize>+ <endpoint>https://[email protected]/5226277</endpoint>+ </send_crash_reports>+ <merge_tree_metadata_cache>+ <lru_cache_size>268435456</lru_cache_size>+ <continue_if_corrupted>true</continue_if_corrupted>+ </merge_tree_metadata_cache>+ <user_directories>+ <users_xml>+ <path>users.xml</path>+ </users_xml>+ <local_directory>+ <path>/var/lib/clickhouse/access/</path>+ </local_directory>+ </user_directories>+ <default_profile>default</default_profile>+ <distributed_ddl>+ <path>/clickhouse/task_queue/ddl</path>+ </distributed_ddl>+ </clickhouse>++ - path: /root/config/prometheus.yml+ content: |+ global:+ scrape_interval: 5s+ evaluation_interval: 15s++ alerting:+ alertmanagers:+ - static_configs:+ - targets:+ - alertmanager:9093++ rule_files: []++ scrape_configs: []++ remote_read:+ - url: tcp://clickhouse:9000/signoz_metrics++ - path: /etc/otel-collector-config.yaml+ content: |+ receivers:+ otlp:+ protocols:+ grpc:+ endpoint: 0.0.0.0:4317+ http:+ endpoint: 0.0.0.0:4318+ prometheus:+ config:+ global:+ scrape_interval: 60s+ scrape_configs:+ - job_name: otel-collector+ static_configs:+ - targets:+ - localhost:8888+ labels:+ job_name: otel-collector+ processors:+ batch:+ send_batch_size: 10000+ send_batch_max_size: 11000+ timeout: 10s+ resourcedetection:+ detectors: [env, system]+ timeout: 2s+ signozspanmetrics/delta:+ metrics_exporter: signozclickhousemetrics+ metrics_flush_interval: 60s+ latency_histogram_buckets: [100us, 1ms, 2ms, 6ms, 10ms, 50ms, 100ms, 250ms, 500ms, 1000ms, 1400ms, 2000ms, 5s, 10s, 20s, 40s, 60s ]+ dimensions_cache_size: 100000+ aggregation_temporality: AGGREGATION_TEMPORALITY_DELTA+ enable_exp_histogram: true+ dimensions:+ - name: service.namespace+ default: default+ - name: deployment.environment+ default: default+ - name: signoz.collector.id+ - name: service.version+ - name: browser.platform+ - name: browser.mobile+ - name: k8s.cluster.name+ - name: k8s.node.name+ - name: k8s.namespace.name+ - name: host.name+ - name: host.type+ - name: container.name+ extensions:+ health_check:+ endpoint: 0.0.0.0:13133+ pprof:+ endpoint: 0.0.0.0:1777+ exporters:+ clickhousetraces:+ datasource: tcp://clickhouse:9000/signoz_traces+ low_cardinal_exception_grouping: ${env:LOW_CARDINAL_EXCEPTION_GROUPING}+ use_new_schema: true+ signozclickhousemetrics:+ dsn: tcp://clickhouse:9000/signoz_metrics+ clickhouselogsexporter:+ dsn: tcp://clickhouse:9000/signoz_logs+ timeout: 10s+ use_new_schema: true+ service:+ telemetry:+ logs:+ encoding: json+ extensions:+ - health_check+ - pprof+ pipelines:+ traces:+ receivers: [otlp]+ processors: [signozspanmetrics/delta, batch]+ exporters: [clickhousetraces]+ metrics:+ receivers: [otlp]+ processors: [batch]+ exporters: [signozclickhousemetrics]+ metrics/prometheus:+ receivers: [prometheus]+ processors: [batch]+ exporters: [signozclickhousemetrics]+ logs:+ receivers: [otlp]+ processors: [batch]+ exporters: [clickhouselogsexporter]++ - path: /etc/manager-config.yaml+ content: |+ server_endpoint: ws://signoz:4320/v1/opamp++post_install: |+ SigNoz is installed and running!++ - Web UI: http://your-server:${HTTP_PORT}+ - There is NO login by default. Open the UI and create the FIRST account;+ that user becomes the instance admin.++ Send telemetry from your apps (OpenTelemetry / OTLP):+ - gRPC: http://your-server:4317+ - HTTP: http://your-server:4318+ Point your OTLP exporter's endpoint at one of the above+ (e.g. OTEL_EXPORTER_OTLP_ENDPOINT=http://your-server:4317).++ For production:+ - Attach a real domain to this app to serve the UI over a public URL+ instead of host:${HTTP_PORT}.++ This stack runs several containers: the SigNoz query service + UI, a+ ClickHouse columnar store (with a ZooKeeper coordinator and a one-shot+ init helper), schema migrators that prepare the ClickHouse schema, and+ an OpenTelemetry Collector that ingests your traces, metrics, and logs.+ ClickHouse is memory-hungry, so give this app at least 2GB of RAM.diff --git a/backend/templates/typesense.yaml b/backend/templates/typesense.yamlnew file mode 100644index 00000000..6d98ae26--- /dev/null+++ b/backend/templates/typesense.yaml@@ -0,0 +1,61 @@+id: typesense+name: Typesense+version: "1.0"+description: Typo-tolerant search engine optimized for fast, instant search-as-you-type experiences.+icon: data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PGNpcmNsZSBjeD0iMTEiIGN5PSIxMSIgcj0iOCIvPjxsaW5lIHgxPSIyMSIgeTE9IjIxIiB4Mj0iMTYuNjUiIHkyPSIxNi42NSIvPjwvc3ZnPg==+website: https://typesense.org+documentation: https://typesense.org/docs/+categories:+ - search+ - database++variables:+ - name: HTTP_PORT+ description: Port for the Typesense HTTP API (auto-assigned)+ type: port+ default: "8108"+ hidden: true+ - name: API_KEY+ description: Bootstrap API key for Typesense (auto-generated)+ type: random+ length: 48+ hidden: true++ports:+ - port: "${HTTP_PORT}"+ protocol: http+ description: Typesense HTTP API++requirements:+ memory: 512MB+ storage: 1GB++compose:+ services:+ typesense:+ image: typesense/typesense:27.1+ container_name: ${APP_NAME}+ restart: unless-stopped+ ports:+ - "${HTTP_PORT}:8108"+ command: ["--data-dir", "/data", "--api-key=${API_KEY}", "--enable-cors"]+ volumes:+ - typesense-data:/data+ healthcheck:+ test: ["CMD", "curl", "-fsS", "http://127.0.0.1:8108/health"]+ interval: 10s+ timeout: 10s+ retries: 5+ start_period: 20s++ volumes:+ typesense-data:++post_install: |+ Typesense is installed and running!++ - API endpoint: http://your-server:${HTTP_PORT}+ - API key: ${API_KEY}++ Send the key as the `X-TYPESENSE-API-KEY: ${API_KEY}` header on every request.+ Use this bootstrap key to create scoped, lower-privilege keys for your apps.diff --git a/backend/templates/wg-easy.yaml b/backend/templates/wg-easy.yamlnew file mode 100644index 00000000..5e617072--- /dev/null+++ b/backend/templates/wg-easy.yaml@@ -0,0 +1,73 @@+id: wg-easy+name: WG-Easy+version: "1.0"+description: The easiest way to run WireGuard VPN with a web admin UI.+icon: data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHJlY3QgeD0iMTYiIHk9IjE2IiB3aWR0aD0iNiIgaGVpZ2h0PSI2IiByeD0iMSIvPjxyZWN0IHg9IjIiIHk9IjE2IiB3aWR0aD0iNiIgaGVpZ2h0PSI2IiByeD0iMSIvPjxyZWN0IHg9IjkiIHk9IjIiIHdpZHRoPSI2IiBoZWlnaHQ9IjYiIHJ4PSIxIi8+PHBhdGggZD0iTTUgMTZ2LTNhMSAxIDAgMCAxIDEtMWgxMmExIDEgMCAwIDEgMSAxdjNNMTIgMTJWOCIvPjwvc3ZnPg==+website: https://github.com/wg-easy/wg-easy+documentation: https://github.com/wg-easy/wg-easy/wiki+categories:+ - networking+ - vpn+ - security++variables:+ - name: HTTP_PORT+ description: Port for the WG-Easy web admin UI (auto-assigned)+ type: port+ default: "51821"+ hidden: true+ - name: WG_HOST+ description: Public IP or hostname clients connect to — REQUIRED+ type: string+ default: ""+ required: true+ - name: ADMIN_PASSWORD+ description: Default admin password (auto-generated)+ type: password+ length: 24++ports:+ - port: "${HTTP_PORT}"+ protocol: http+ description: WG-Easy Web Admin UI++requirements:+ memory: 128MB+ storage: 500MB++compose:+ services:+ wg-easy:+ image: ghcr.io/wg-easy/wg-easy:13+ container_name: ${APP_NAME}+ restart: unless-stopped+ ports:+ - "51820:51820/udp"+ - "${HTTP_PORT}:51821"+ environment:+ WG_HOST: "${WG_HOST}"+ PASSWORD: "${ADMIN_PASSWORD}"+ WG_PORT: "51820"+ WG_DEFAULT_DNS: "1.1.1.1"+ cap_add:+ - NET_ADMIN+ - SYS_MODULE+ sysctls:+ net.ipv4.ip_forward: "1"+ net.ipv4.conf.all.src_valid_mark: "1"+ volumes:+ - wg-easy-config:/etc/wireguard++ volumes:+ wg-easy-config:++post_install: |+ WG-Easy is installed and running!++ - Web UI: http://your-server:${HTTP_PORT}+ - Login with the admin password: ${ADMIN_PASSWORD}++ IMPORTANT:+ - You MUST set WG_HOST to your server's public IP or hostname. If you left it+ blank, edit the app's environment now and set it, then restart.+ - UDP port 51820 must be open in your firewall for VPN clients to connect.diff --git a/frontend/src/pages/Templates.jsx b/frontend/src/pages/Templates.jsxindex f64c5b15..0f5cade9 100644--- a/frontend/src/pages/Templates.jsx+++ b/frontend/src/pages/Templates.jsx@@ -41,6 +41,12 @@ const TEMPLATE_ICONS = {'jaeger': BarChart3,'plausible': BarChart3,'umami': BarChart3,+ 'beszel': BarChart3,+ 'signoz': BarChart3,+ // Search+ 'meilisearch': Search,+ 'typesense': Search,+ 'searxng': Search,// CMS / Blog'wordpress': Globe,'ghost': FileText,@@ -102,11 +108,15 @@ const TEMPLATE_ICONS = {'n8n': Workflow,// Notifications'gotify': MessageSquare,+ 'ntfy': MessageSquare,// Security'vaultwarden': Lock,'authelia': Shield,'keycloak': Shield,'crowdsec': Shield,+ 'authentik': Shield,+ 'wg-easy': Shield,+ 'pihole': Shield,// Database tools'phpmyadmin': Database,'pgadmin': Database,