This commit is contained in:
+2
-11
@@ -7,14 +7,5 @@ DOMAIN=plausible.example.com
|
|||||||
LETS_ENCRYPT_ENV=production
|
LETS_ENCRYPT_ENV=production
|
||||||
|
|
||||||
SECRET_KEY_BASE=replace-me
|
SECRET_KEY_BASE=replace-me
|
||||||
DISABLE_AUTH=false
|
DISABLE_AUTH=replace-me # true or false
|
||||||
DISABLE_REGISTRATION=true
|
DISABLE_REGISTRATION=replace-me # true or false
|
||||||
|
|
||||||
## SMTP settings (required — SMTP_HOST_PORT must be an integer)
|
|
||||||
SMTP_HOST_ADDR=localhost
|
|
||||||
MAILER_EMAIL=noreply@plausible.example.com
|
|
||||||
SMTP_HOST_PORT=25
|
|
||||||
#SMTP_USER_NAME=
|
|
||||||
#SMTP_USER_PWD=
|
|
||||||
SMTP_HOST_SSL_ENABLED=false
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
export CLICKHOUSE_CONF_VERSION=v2
|
export CLICKHOUSE_CONF_VERSION=v2
|
||||||
export CLICKHOUSE_USER_CONF_VERSION=v3
|
export CLICKHOUSE_USER_CONF_VERSION=v2
|
||||||
export CLICKHOUSE_ENTRYPOINT_VERSION=v6
|
export CLICKHOUSE_ENTRYPOINT_VERSION=v6
|
||||||
export PG_BACKUP_VERSION=v1
|
export PG_BACKUP_VERSION=v1
|
||||||
export CLICKHOUSE_BACKUP_SCRIPT_VERSION=v1
|
export CLICKHOUSE_BACKUP_SCRIPT_VERSION=v1
|
||||||
|
|||||||
@@ -1,17 +1,8 @@
|
|||||||
<!-- https://clickhouse.com/docs/en/operations/tips#using-less-than-16gb-of-ram -->
|
<yandex>
|
||||||
<clickhouse>
|
|
||||||
<profiles>
|
<profiles>
|
||||||
<default>
|
<default>
|
||||||
<!-- https://clickhouse.com/docs/en/operations/settings/settings#max_threads -->
|
<log_queries>0</log_queries>
|
||||||
<max_threads>1</max_threads>
|
<log_query_threads>0</log_query_threads>
|
||||||
<!-- https://clickhouse.com/docs/en/operations/settings/settings#max_block_size -->
|
|
||||||
<max_block_size>8192</max_block_size>
|
|
||||||
<!-- https://clickhouse.com/docs/en/operations/settings/settings#max_download_threads -->
|
|
||||||
<max_download_threads>1</max_download_threads>
|
|
||||||
<!-- https://clickhouse.com/docs/en/operations/settings/settings#input_format_parallel_parsing -->
|
|
||||||
<input_format_parallel_parsing>0</input_format_parallel_parsing>
|
|
||||||
<!-- https://clickhouse.com/docs/en/operations/settings/settings#output_format_parallel_formatting -->
|
|
||||||
<output_format_parallel_formatting>0</output_format_parallel_formatting>
|
|
||||||
</default>
|
</default>
|
||||||
</profiles>
|
</profiles>
|
||||||
</clickhouse>
|
</yandex>
|
||||||
|
|||||||
+2
-9
@@ -3,7 +3,7 @@ version: "3.8"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: ghcr.io/plausible/community-edition:v3.2.1
|
image: plausible/analytics:v2.0.0
|
||||||
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
|
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
@@ -67,17 +67,10 @@ services:
|
|||||||
backupbot.restore.post-hook: "/pg_backup.sh restore"
|
backupbot.restore.post-hook: "/pg_backup.sh restore"
|
||||||
|
|
||||||
plausible_events_db:
|
plausible_events_db:
|
||||||
image: clickhouse/clickhouse-server:24.12-alpine
|
image: clickhouse/clickhouse-server:23.4.6.25-alpine
|
||||||
volumes:
|
volumes:
|
||||||
- event-data:/var/lib/clickhouse
|
- event-data:/var/lib/clickhouse
|
||||||
entrypoint: /custom-entrypoint.sh
|
entrypoint: /custom-entrypoint.sh
|
||||||
environment:
|
|
||||||
- CLICKHOUSE_SKIP_USER_SETUP=1
|
|
||||||
healthcheck:
|
|
||||||
test: ["CMD-SHELL", "clickhouse-client --query='SELECT 1'"]
|
|
||||||
interval: 5s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 60
|
|
||||||
configs:
|
configs:
|
||||||
- source: clickhouse-config
|
- source: clickhouse-config
|
||||||
target: /etc/clickhouse-server/config.d/logging.xml
|
target: /etc/clickhouse-server/config.d/logging.xml
|
||||||
|
|||||||
Reference in New Issue
Block a user