diff --git a/blueprints/plausible/docker-compose.yml b/blueprints/plausible/docker-compose.yml
index ad483ecf6..49b0ea4a4 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,21 +9,24 @@ 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
+ - ./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:
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:
diff --git a/blueprints/plausible/template.toml b/blueprints/plausible/template.toml
index 58c234f53..08bf36729 100644
--- a/blueprints/plausible/template.toml
+++ b/blueprints/plausible/template.toml
@@ -12,9 +12,11 @@ host = "${main_domain}"
BASE_URL = "http://${main_domain}"
SECRET_KEY_BASE = "${secret_base}"
TOTP_VAULT_KEY = "${totp_key}"
+DATABASE_URL = "postgres://postgres:postgres@plausible_db:5432/plausible_db"
+CLICKHOUSE_DATABASE_URL = "http://plausible_events_db:8123/plausible_events_db"
[[config.mounts]]
-filePath = "/clickhouse/clickhouse-config.xml"
+filePath = "./clickhouse/logs.xml"
content = """
@@ -22,26 +24,45 @@ content = """
true
-
+
+ system
+
+ 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": {