diff --git a/blueprints/plausible/docker-compose.yml b/blueprints/plausible/docker-compose.yml
index ad483ecf6..382fd7e6b 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:
@@ -31,6 +34,8 @@ services:
- plausible_events_db
env_file:
- .env
+ ports:
+ - 8000
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
+
+ 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": {