2020-07-21 20:55:44 +01:00
|
|
|
services:
|
|
|
|
plausible:
|
2024-06-24 19:54:40 +01:00
|
|
|
image: ghcr.io/plausible/community-edition:v2.1
|
2020-08-04 19:38:01 +01:00
|
|
|
restart: unless-stopped
|
2020-08-04 22:07:45 +01:00
|
|
|
command: sh -c "/entrypoint.sh db migrate && /entrypoint.sh run"
|
2020-07-21 20:55:44 +01:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- clickhouse
|
2022-01-15 23:44:06 +00:00
|
|
|
networks:
|
|
|
|
- default
|
2023-12-21 16:13:32 +00:00
|
|
|
- coredns
|
2020-07-21 20:55:44 +01:00
|
|
|
environment:
|
2023-12-14 22:03:23 +00:00
|
|
|
- SECRET_KEY_BASE={{ vault_plausible_secret_key }}
|
|
|
|
- SIGNING_SALT={{ vault_plausible_signing_salt }}
|
2024-06-24 19:54:40 +01:00
|
|
|
- TOTP_VAULT_KEY={{ vault_plausible_totp_vault_key }}
|
2020-07-21 20:55:44 +01:00
|
|
|
- DATABASE_URL=postgres://plausible:plausible@db:5432/plausible
|
|
|
|
- DISABLE_REGISTRATION=true
|
|
|
|
- DISABLE_SUBSCRIPTION=true
|
2020-09-17 15:18:01 +01:00
|
|
|
- CLICKHOUSE_DATABASE_URL=http://clickhouse:8123/plausible
|
2024-06-25 08:36:55 +01:00
|
|
|
- BASE_URL=https://plausible.theorangeone.net
|
2023-12-14 22:03:23 +00:00
|
|
|
- GOOGLE_CLIENT_ID={{ vault_plausible_google_client_id }}
|
|
|
|
- GOOGLE_CLIENT_SECRET={{ vault_plausible_google_client_secret }}
|
2022-09-22 08:23:30 +01:00
|
|
|
- RELEASE_DISTRIBUTION=none
|
2023-12-14 22:03:23 +00:00
|
|
|
- MAILER_EMAIL={{ vault_plausible_from_email }}
|
2022-09-22 08:37:00 +01:00
|
|
|
- SMTP_HOST_ADDR=smtp.eu.mailgun.org
|
|
|
|
- SMTP_HOST_PORT=465
|
2023-12-14 22:03:23 +00:00
|
|
|
- SMTP_USER_NAME={{ vault_plausible_smtp_user }}
|
|
|
|
- SMTP_USER_PWD={{ vault_plausible_smtp_password }}
|
2022-09-22 08:37:00 +01:00
|
|
|
- SMTP_HOST_SSL_ENABLED=true
|
2020-07-21 20:55:44 +01:00
|
|
|
|
|
|
|
clickhouse:
|
2024-11-26 20:01:05 +00:00
|
|
|
image: clickhouse/clickhouse-server:24.11.1.2557-alpine
|
2020-08-04 19:38:01 +01:00
|
|
|
restart: unless-stopped
|
2020-07-21 20:55:44 +01:00
|
|
|
volumes:
|
2020-10-03 17:18:11 +01:00
|
|
|
- ./clickhouse:/var/lib/clickhouse
|
|
|
|
- ./docker_related_config.xml:/etc/clickhouse-server/config.d/docker_related_config.xml:ro
|
|
|
|
- ./docker_related_user_config.xml:/etc/clickhouse-server/users.d/docker_related_user_config.xml:ro
|
2020-08-25 22:05:10 +01:00
|
|
|
tmpfs:
|
|
|
|
- /var/log/clickhouse-server
|
2020-07-21 20:55:44 +01:00
|
|
|
ulimits:
|
|
|
|
nofile:
|
|
|
|
soft: 262144
|
|
|
|
hard: 262144
|
|
|
|
|
|
|
|
db:
|
2021-12-22 12:57:49 +00:00
|
|
|
image: postgres:14-alpine
|
2020-07-21 20:55:44 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2021-04-15 18:28:24 +01:00
|
|
|
- ./postgres:/var/lib/postgresql/data
|
2020-07-21 20:55:44 +01:00
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=plausible
|
|
|
|
- POSTGRES_USER=plausible
|
2022-01-15 23:44:06 +00:00
|
|
|
|
|
|
|
networks:
|
2023-12-21 16:13:32 +00:00
|
|
|
coredns:
|
2022-01-15 23:44:06 +00:00
|
|
|
external: true
|