Last active
June 9, 2024 02:38
-
-
Save jacc/cddb3465a95da99619ed7ce4c330f286 to your computer and use it in GitHub Desktop.
Latest Plausible configuration for Coolify
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
plausible: | |
image: ghcr.io/plausible/community-edition:v2.1.1 | |
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run" | |
environment: | |
- DATABASE_URL=postgres://postgres:$SERVICE_PASSWORD_POSTGRES@plausible_db/plausible | |
- BASE_URL=$SERVICE_FQDN_PLAUSIBLE_8000 | |
- SECRET_KEY_BASE=$SERVICE_BASE64_64_PLAUSIBLE | |
- TOTP_VAULT_KEY=$SERVICE_REALBASE64_TOTP | |
depends_on: | |
- plausible_db | |
- plausible_events_db | |
mail: | |
image: bytemark/smtp | |
plausible_db: | |
image: postgres:16-alpine | |
volumes: | |
- db-data:/var/lib/postgresql/data | |
environment: | |
- POSTGRES_DB=plausible | |
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES | |
plausible_events_db: | |
image: clickhouse/clickhouse-server:24.3.3.102-alpine | |
volumes: | |
- type: volume | |
source: event-data | |
target: /var/lib/clickhouse | |
- type: bind | |
source: ./clickhouse/clickhouse-config.xml | |
target: /etc/clickhouse-server/config.d/logging.xml | |
read_only: true | |
content: >- | |
<clickhouse><profiles><default><log_queries>0</log_queries><log_query_threads>0</log_query_threads></default></profiles></clickhouse> | |
- type: bind | |
source: ./clickhouse/clickhouse-user-config.xml | |
target: /etc/clickhouse-server/users.d/logging.xml | |
read_only: true | |
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> | |
ulimits: | |
nofile: | |
soft: 262144 | |
hard: 262144 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment