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
|
2021-08-19 04:05:24 -05:00
|
|
|
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
|
2021-08-19 04:05:24 -05:00
|
|
|
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
|
2020-12-07 03:20:50 -06:00
|
|
|
- ./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
|
2021-08-19 04:05:24 -05:00
|
|
|
restart: always
|
2024-07-17 11:31:32 -05:00
|
|
|
command: sh -c "/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:
|
2024-07-17 11:31:32 -05:00
|
|
|
- LOG_LEVEL=notice
|
|
|
|
# replace with the URL where your dashboard would be accessible
|
|
|
|
# ensure https:// scheme if you use https
|
2024-06-16 23:51:59 -05:00
|
|
|
- BASE_URL=replace-me
|
2024-07-17 11:31:32 -05:00
|
|
|
# use `openssl rand -base64 48` to generate a $SECRET_KEY_BASE
|
2024-06-16 23:51:59 -05:00
|
|
|
- SECRET_KEY_BASE=replace-me
|
2024-07-17 11:31:32 -05:00
|
|
|
- HTTP_PORT=8000
|
|
|
|
- HTTPS_PORT=8001
|
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:
|