mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-02 18:17:11 +09:00
Follow-up to 025fa0be: keep serverkit.ai as the stable icon host rather
than jsDelivr. The registry repo remains the canonical home of the logo
files; serverkit.ai proxies /imgs/template-icons/ from its raw tree, so
these URLs now resolve for all 210 logos instead of only the legacy
subset the website bundles.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
88 lines
2.2 KiB
YAML
88 lines
2.2 KiB
YAML
id: plausible
|
|
name: Plausible Analytics
|
|
version: "2.0"
|
|
description: Privacy-friendly, lightweight alternative to Google Analytics
|
|
icon: https://serverkit.ai/imgs/template-icons/plausible.svg
|
|
website: https://plausible.io
|
|
documentation: https://plausible.io/docs
|
|
categories:
|
|
- analytics
|
|
- privacy
|
|
- monitoring
|
|
|
|
variables:
|
|
- name: HTTP_PORT
|
|
description: HTTP port
|
|
type: port
|
|
default: "8000"
|
|
hidden: true
|
|
- name: BASE_URL
|
|
description: Base URL (e.g., https://analytics.example.com)
|
|
required: true
|
|
- name: SECRET_KEY_BASE
|
|
description: Secret key for encryption
|
|
type: password
|
|
generate: password
|
|
- name: DB_PASSWORD
|
|
description: PostgreSQL password
|
|
type: password
|
|
generate: password
|
|
|
|
ports:
|
|
- port: 8000
|
|
protocol: tcp
|
|
description: Web interface
|
|
|
|
volumes:
|
|
- name: data
|
|
path: /var/lib/plausible
|
|
description: Plausible data
|
|
|
|
requirements:
|
|
memory: 2GB
|
|
storage: 5GB
|
|
|
|
compose:
|
|
services:
|
|
plausible:
|
|
image: plausible/analytics:v${VERSION:-2.0}
|
|
container_name: ${APP_NAME}
|
|
restart: unless-stopped
|
|
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
|
|
environment:
|
|
- BASE_URL=${BASE_URL}
|
|
- SECRET_KEY_BASE=${SECRET_KEY_BASE}
|
|
- DATABASE_URL=postgres://plausible:${DB_PASSWORD}@plausible_db:5432/plausible_db
|
|
- CLICKHOUSE_DATABASE_URL=http://plausible_events_db:8123/plausible_events_db
|
|
ports:
|
|
- "${HTTP_PORT}:8000"
|
|
depends_on:
|
|
- plausible_db
|
|
- plausible_events_db
|
|
|
|
plausible_db:
|
|
image: postgres:14-alpine
|
|
container_name: ${APP_NAME}-db
|
|
restart: unless-stopped
|
|
environment:
|
|
- POSTGRES_PASSWORD=${DB_PASSWORD}
|
|
- POSTGRES_USER=plausible
|
|
- POSTGRES_DB=plausible_db
|
|
volumes:
|
|
- plausible_db:/var/lib/postgresql/data
|
|
|
|
plausible_events_db:
|
|
image: clickhouse/clickhouse-server:23.3-alpine
|
|
container_name: ${APP_NAME}-events
|
|
restart: unless-stopped
|
|
volumes:
|
|
- plausible_events:/var/lib/clickhouse
|
|
ulimits:
|
|
nofile:
|
|
soft: 262144
|
|
hard: 262144
|
|
|
|
volumes:
|
|
plausible_db:
|
|
plausible_events:
|