chore: Update Plausible docker compose template to Plausible 2.1.0
This commit is contained in:
parent
fd4dd1edfa
commit
71d24773b6
@ -6,31 +6,30 @@
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
plausible:
|
plausible:
|
||||||
image: image: ghcr.io/plausible/community-edition:v2.1.1
|
image: "ghcr.io/plausible/community-edition:v2.1.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"'
|
||||||
environment:
|
environment:
|
||||||
- DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_POSTGRES@plausible_db/plausible
|
- "DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_POSTGRES@plausible_db/plausible"
|
||||||
- BASE_URL=$SERVICE_FQDN_PLAUSIBLE_8000
|
- BASE_URL=$SERVICE_FQDN_PLAUSIBLE
|
||||||
- SECRET_KEY_BASE=$SERVICE_BASE64_64_PLAUSIBLE
|
- SECRET_KEY_BASE=$SERVICE_BASE64_64_PLAUSIBLE
|
||||||
- TOTP_VAULT_KEY=$SERVICE_REALBASE64_TOTP
|
- TOTP_VAULT_KEY=$SERVICE_BASE64_TOTP
|
||||||
depends_on:
|
depends_on:
|
||||||
- plausible_db
|
- plausible_db
|
||||||
- plausible_events_db
|
- plausible_events_db
|
||||||
- mail
|
- mail
|
||||||
|
|
||||||
mail:
|
mail:
|
||||||
image: bytemark/smtp
|
image: bytemark/smtp
|
||||||
|
|
||||||
plausible_db:
|
plausible_db:
|
||||||
image: postgres:14-alpine
|
image: "postgres:14-alpine"
|
||||||
volumes:
|
volumes:
|
||||||
- db-data:/var/lib/postgresql/data
|
- "db-data:/var/lib/postgresql/data"
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_DB=plausible
|
- POSTGRES_DB=plausible
|
||||||
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
|
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
|
||||||
|
|
||||||
plausible_events_db:
|
plausible_events_db:
|
||||||
image: clickhouse/clickhouse-server:24.3.3.102-alpine
|
image: "clickhouse/clickhouse-server:24.3.3.102-alpine"
|
||||||
volumes:
|
volumes:
|
||||||
- type: volume
|
- type: volume
|
||||||
source: event-data
|
source: event-data
|
||||||
@ -39,19 +38,12 @@ services:
|
|||||||
source: ./clickhouse/clickhouse-config.xml
|
source: ./clickhouse/clickhouse-config.xml
|
||||||
target: /etc/clickhouse-server/config.d/logging.xml
|
target: /etc/clickhouse-server/config.d/logging.xml
|
||||||
read_only: true
|
read_only: true
|
||||||
content: >-
|
content: "<clickhouse><profiles><default><log_queries>0</log_queries><log_query_threads>0</log_query_threads></default></profiles></clickhouse>"
|
||||||
<clickhouse><profiles><default><log_queries>0</log_queries><log_query_threads>0</log_query_threads></default></profiles></clickhouse>
|
|
||||||
- type: bind
|
- type: bind
|
||||||
source: ./clickhouse/clickhouse-user-config.xml
|
source: ./clickhouse/clickhouse-user-config.xml
|
||||||
target: /etc/clickhouse-server/users.d/logging.xml
|
target: /etc/clickhouse-server/users.d/logging.xml
|
||||||
read_only: true
|
read_only: true
|
||||||
content: >-
|
content: '<clickhouse><logger><level>warning</level><console>true</console></logger><query_thread_log remove="remove"/><query_log remove="remove"/><text_log remove="remove"/><trace_log remove="remove"/><metric_log remove="remove"/><asynchronous_metric_log remove="remove"/><session_log remove="remove"/><part_log remove="remove"/></clickhouse>'
|
||||||
<clickhouse><logger><level>warning</level><console>true</console></logger><query_thread_log
|
|
||||||
remove="remove"/><query_log remove="remove"/><text_log
|
|
||||||
remove="remove"/><trace_log remove="remove"/><metric_log
|
|
||||||
remove="remove"/><asynchronous_metric_log
|
|
||||||
remove="remove"/><session_log remove="remove"/><part_log
|
|
||||||
remove="remove"/></clickhouse>
|
|
||||||
ulimits:
|
ulimits:
|
||||||
nofile:
|
nofile:
|
||||||
soft: 262144
|
soft: 262144
|
||||||
|
Loading…
Reference in New Issue
Block a user