2020-09-29 15:00:52 +03:00
|
|
|
services:
|
|
|
|
mail:
|
|
|
|
image: bytemark/smtp
|
|
|
|
restart: always
|
|
|
|
|
|
|
|
plausible_db:
|
2024-02-26 22:04:11 +08:00
|
|
|
# Plausible v2.0.0 was tested against PostgreSQL versions 12, 13, and 14
|
|
|
|
# https://github.com/plausible/analytics/blob/v2.0.0/.github/workflows/elixir.yml#L16
|
2022-09-07 13:01:57 +04:00
|
|
|
image: postgres:14-alpine
|
2021-08-19 14:35:24 +05:30
|
|
|
restart: always
|
2020-09-29 15:00:52 +03:00
|
|
|
volumes:
|
|
|
|
- db-data:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=postgres
|
|
|
|
|
|
|
|
plausible_events_db:
|
2023-07-08 12:49:15 +07:00
|
|
|
image: clickhouse/clickhouse-server:23.3.7.5-alpine
|
2021-08-19 14:35:24 +05:30
|
|
|
restart: always
|
2020-09-29 15:00:52 +03:00
|
|
|
volumes:
|
|
|
|
- event-data:/var/lib/clickhouse
|
2024-04-16 00:35:54 +08:00
|
|
|
- event-logs:/var/log/clickhouse-server
|
2020-12-07 11:20:50 +02: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 15:00:52 +03:00
|
|
|
ulimits:
|
|
|
|
nofile:
|
|
|
|
soft: 262144
|
|
|
|
hard: 262144
|
|
|
|
|
|
|
|
plausible:
|
2023-06-14 18:28:49 +08:00
|
|
|
image: plausible/analytics:v2.0
|
2021-08-19 14:35:24 +05:30
|
|
|
restart: always
|
2022-12-16 04:19:20 +00:00
|
|
|
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
|
2020-09-29 15:00:52 +03:00
|
|
|
depends_on:
|
|
|
|
- plausible_db
|
|
|
|
- plausible_events_db
|
|
|
|
- mail
|
|
|
|
ports:
|
2024-02-24 01:50:30 +08:00
|
|
|
- 127.0.0.1:8000:8000
|
2020-09-29 15:00:52 +03:00
|
|
|
env_file:
|
|
|
|
- plausible-conf.env
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db-data:
|
|
|
|
driver: local
|
|
|
|
event-data:
|
|
|
|
driver: local
|
2024-04-16 00:35:54 +08:00
|
|
|
event-logs:
|
|
|
|
driver: local
|
|
|
|
|