From 8da6830dee3756d61a51452c7a7d20a403ef1c8c Mon Sep 17 00:00:00 2001 From: Sina Sebastian Eetezadi Date: Tue, 6 Jan 2026 21:36:28 +0000 Subject: [PATCH 1/3] Update Plausible template to v3.1.0 with enhanced ClickHouse configuration - Upgrade Plausible Community Edition from v2.1.5 to v3.1.0 - Update PostgreSQL from 16-alpine to 18-alpine - Update ClickHouse from 24.3.3.102-alpine to 25.12-alpine - Add CLICKHOUSE_SKIP_USER_SETUP environment variable for ClickHouse - Replace ClickHouse config files with optimized configurations: - logs.xml: Query logging with 30-day retention - ipv4-only.xml: Network binding configuration - low-resources.xml: Performance tuning for low-memory environments --- blueprints/plausible/docker-compose.yml | 15 ++++++----- blueprints/plausible/template.toml | 35 +++++++++++++++++++------ meta.json | 2 +- 3 files changed, 36 insertions(+), 16 deletions(-) diff --git a/blueprints/plausible/docker-compose.yml b/blueprints/plausible/docker-compose.yml index ad483ecf6..e8e004346 100644 --- a/blueprints/plausible/docker-compose.yml +++ b/blueprints/plausible/docker-compose.yml @@ -1,6 +1,6 @@ services: plausible_db: - image: postgres:16-alpine + image: postgres:18-alpine restart: always volumes: @@ -9,28 +9,29 @@ services: - POSTGRES_PASSWORD=postgres plausible_events_db: - image: clickhouse/clickhouse-server:24.3.3.102-alpine + image: clickhouse/clickhouse-server:25.12-alpine restart: always volumes: - event-data:/var/lib/clickhouse - event-logs:/var/log/clickhouse-server - - ../files/clickhouse/clickhouse-config.xml:/etc/clickhouse-server/config.d/logging.xml:ro - - ../files/clickhouse/clickhouse-user-config.xml:/etc/clickhouse-server/users.d/logging.xml:ro + - ../files/clickhouse/logs.xml:/etc/clickhouse-server/config.d/logs.xml:ro + - ../files/clickhouse/ipv4-only.xml:/etc/clickhouse-server/config.d/ipv4-only.xml:ro + - ../files/clickhouse/low-resources.xml:/etc/clickhouse-server/config.d/low-resources.xml:ro + environment: + - CLICKHOUSE_SKIP_USER_SETUP=1 ulimits: nofile: soft: 262144 hard: 262144 plausible: - image: ghcr.io/plausible/community-edition:v2.1.5 + image: ghcr.io/plausible/community-edition:v3.1.0 restart: always command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run" depends_on: - plausible_db - plausible_events_db - env_file: - - .env volumes: db-data: diff --git a/blueprints/plausible/template.toml b/blueprints/plausible/template.toml index 58c234f53..0b9c6c87b 100644 --- a/blueprints/plausible/template.toml +++ b/blueprints/plausible/template.toml @@ -14,7 +14,7 @@ SECRET_KEY_BASE = "${secret_base}" TOTP_VAULT_KEY = "${totp_key}" [[config.mounts]] -filePath = "/clickhouse/clickhouse-config.xml" +filePath = "/clickhouse/logs.xml" content = """ @@ -22,26 +22,45 @@ content = """ true - + + system + query_log
+ Engine = MergeTree PARTITION BY event_date ORDER BY event_time TTL event_date + interval 30 day + 7500 +
+ + + + - - -
""" [[config.mounts]] -filePath = "/clickhouse/clickhouse-user-config.xml" +filePath = "/clickhouse/ipv4-only.xml" +content = """ + + 0.0.0.0 + +""" + +[[config.mounts]] +filePath = "/clickhouse/low-resources.xml" content = """ + 524288000 + - 0 - 0 + 1 + 8192 + 1 + 0 + 0 diff --git a/meta.json b/meta.json index e3b7201ee..63f28aee8 100644 --- a/meta.json +++ b/meta.json @@ -4789,7 +4789,7 @@ { "id": "plausible", "name": "Plausible", - "version": "v2.1.5", + "version": "v3.1.0", "description": "Plausible is a open source, self-hosted web analytics platform that lets you track website traffic and user behavior.", "logo": "logo.svg", "links": { From d3caf6bea8e2e99c8017f09c13312fd6f1f60679 Mon Sep 17 00:00:00 2001 From: Sina Sebastian Eetezadi Date: Tue, 6 Jan 2026 22:02:32 +0000 Subject: [PATCH 2/3] fix: env file & port --- blueprints/plausible/docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/blueprints/plausible/docker-compose.yml b/blueprints/plausible/docker-compose.yml index e8e004346..6043144ee 100644 --- a/blueprints/plausible/docker-compose.yml +++ b/blueprints/plausible/docker-compose.yml @@ -32,6 +32,10 @@ services: depends_on: - plausible_db - plausible_events_db + env_file: + - .env + ports: + - 8000 volumes: db-data: From 8439269e6571004ceb36c3cb41d6374220d16e61 Mon Sep 17 00:00:00 2001 From: Sina Sebastian Eetezadi Date: Tue, 6 Jan 2026 22:56:40 +0000 Subject: [PATCH 3/3] attemt: file locations --- blueprints/plausible/docker-compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blueprints/plausible/docker-compose.yml b/blueprints/plausible/docker-compose.yml index 6043144ee..382fd7e6b 100644 --- a/blueprints/plausible/docker-compose.yml +++ b/blueprints/plausible/docker-compose.yml @@ -15,9 +15,9 @@ services: volumes: - event-data:/var/lib/clickhouse - event-logs:/var/log/clickhouse-server - - ../files/clickhouse/logs.xml:/etc/clickhouse-server/config.d/logs.xml:ro - - ../files/clickhouse/ipv4-only.xml:/etc/clickhouse-server/config.d/ipv4-only.xml:ro - - ../files/clickhouse/low-resources.xml:/etc/clickhouse-server/config.d/low-resources.xml:ro + - ./clickhouse/logs.xml:/etc/clickhouse-server/config.d/logs.xml:ro + - ./clickhouse/ipv4-only.xml:/etc/clickhouse-server/config.d/ipv4-only.xml:ro + - ./clickhouse/low-resources.xml:/etc/clickhouse-server/config.d/low-resources.xml:ro environment: - CLICKHOUSE_SKIP_USER_SETUP=1 ulimits: