From a081f25c1d0e09e7a7bb682606909884f7299f64 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Fri, 2 Oct 2020 10:27:55 +0300 Subject: [PATCH] Add clickhouse config --- clickhouse/plausible-config.xml | 13 +++++++++++++ clickhouse/users-config.xml | 8 ++++++++ docker-compose.yml | 2 ++ plausible-conf.env | 1 + 4 files changed, 24 insertions(+) create mode 100644 clickhouse/plausible-config.xml create mode 100644 clickhouse/users-config.xml diff --git a/clickhouse/plausible-config.xml b/clickhouse/plausible-config.xml new file mode 100644 index 0000000..81961af --- /dev/null +++ b/clickhouse/plausible-config.xml @@ -0,0 +1,13 @@ + + + warning + true + + + warning + + + warning + + + diff --git a/clickhouse/users-config.xml b/clickhouse/users-config.xml new file mode 100644 index 0000000..07eb8e2 --- /dev/null +++ b/clickhouse/users-config.xml @@ -0,0 +1,8 @@ + + + + 0 + 0 + + + diff --git a/docker-compose.yml b/docker-compose.yml index c0d2908..2105f51 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,6 +17,8 @@ services: image: yandex/clickhouse-server:latest volumes: - event-data:/var/lib/clickhouse + - ./clickhouse/plausible-config.xml:/etc/clickhouse-server/config.d/plausible-config.xml + - ./clickhouse/users-config.xml:/etc/clickhouse-server/users.xml ulimits: nofile: soft: 262144 diff --git a/plausible-conf.env b/plausible-conf.env index 7c8d24d..2f8e178 100644 --- a/plausible-conf.env +++ b/plausible-conf.env @@ -1,4 +1,5 @@ ADMIN_USER_EMAIL={replace-me} ADMIN_USER_NAME={replace-me} ADMIN_USER_PWD={replace-me} +BASE_URL={replace-me} SECRET_KEY_BASE={replace-me}