plausible-hosting/compose.example.yml

53 lines
1.6 KiB
YAML
Raw Normal View History

2020-09-29 07:00:52 -05:00
services:
plausible_db:
2024-06-06 08:26:23 -05:00
# Plausible v2.1.1 was tested against PostgreSQL versions 15 and 16
# https://github.com/plausible/analytics/blob/v2.1.1/.github/workflows/elixir.yml#L21-L32
2024-05-23 05:37:11 -05:00
image: postgres:16-alpine
restart: always
2020-09-29 07:00:52 -05:00
volumes:
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
plausible_events_db:
2024-05-10 06:52:15 -05:00
image: clickhouse/clickhouse-server:24.3.3.102-alpine
restart: always
2020-09-29 07:00:52 -05:00
volumes:
- event-data:/var/lib/clickhouse
2024-04-15 11:35:54 -05:00
- event-logs:/var/log/clickhouse-server
- ./clickhouse/clickhouse-config.xml:/etc/clickhouse-server/config.d/logging.xml:ro
- ./clickhouse/clickhouse-user-config.xml:/etc/clickhouse-server/users.d/logging.xml:ro
2020-09-29 07:00:52 -05:00
ulimits:
nofile:
soft: 262144
hard: 262144
plausible:
2024-06-16 23:51:59 -05:00
image: ghcr.io/plausible/community-edition:v2.1.2
restart: always
2022-12-15 22:19:20 -06:00
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
2020-09-29 07:00:52 -05:00
depends_on:
- plausible_db
- plausible_events_db
ports:
2024-06-16 23:51:59 -05:00
- 80:8000
- 443:8001
volumes:
2024-06-17 00:03:02 -05:00
- plausible-data:/var/lib/plausible
2024-06-16 23:51:59 -05:00
environment:
- BASE_URL=replace-me
- SECRET_KEY_BASE=replace-me
- TOTP_VAULT_KEY=replace-me
2024-06-17 00:03:02 -05:00
- DATA_DIR=/var/lib/plausible
2024-06-16 23:51:59 -05:00
- SITE_ENCRYPT_DIRECTORY_URL=https://acme-v02.api.letsencrypt.org/directory
2024-06-17 00:03:02 -05:00
- SITE_ENCRYPT_DB_FOLDER=/var/lib/plausible/site_encrypt_db
2024-06-16 23:51:59 -05:00
- SITE_ENCRYPT_MODE=auto
- SITE_ENCRYPT_CLIENT=certbot
- LOG_LEVEL=notice
2020-09-29 07:00:52 -05:00
volumes:
db-data:
event-data:
2024-04-15 11:35:54 -05:00
event-logs:
2024-06-17 00:03:02 -05:00
plausible-data: