2022-09-22 07:50:00 +02:00
|
|
|
version: "3.3"
|
|
|
|
services:
|
|
|
|
mail:
|
|
|
|
image: bytemark/smtp
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- plausible
|
|
|
|
|
|
|
|
plausible_db:
|
|
|
|
image: postgres:12
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- {{ plausible_db_data }}:/var/lib/postgresql/data
|
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=postgres
|
|
|
|
networks:
|
|
|
|
- plausible
|
|
|
|
|
|
|
|
plausible_events_db:
|
|
|
|
image: clickhouse/clickhouse-server:22.6-alpine
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- {{ plausible_event_data }}:/var/lib/clickhouse
|
|
|
|
- {{ plausible_config }}/clickhouse-config.xml:/etc/clickhouse-server/config.d/logging.xml:ro
|
|
|
|
- {{ plausible_config }}/clickhouse-user-config.xml:/etc/clickhouse-server/users.d/logging.xml:ro
|
|
|
|
ulimits:
|
|
|
|
nofile:
|
|
|
|
soft: 262144
|
|
|
|
hard: 262144
|
|
|
|
networks:
|
|
|
|
- plausible
|
|
|
|
|
|
|
|
plausible:
|
|
|
|
image: plausible/analytics:latest
|
|
|
|
restart: always
|
|
|
|
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh db init-admin && /entrypoint.sh run"
|
|
|
|
depends_on:
|
|
|
|
- plausible_db
|
|
|
|
- plausible_events_db
|
|
|
|
- mail
|
|
|
|
ports:
|
|
|
|
- {{ plausible_port }}:8000
|
|
|
|
env_file:
|
|
|
|
- {{ plausible_config }}/env.plausible.conf
|
|
|
|
volumes:
|
|
|
|
- {{ plausible_geoip_database }}:/geoip:ro
|
|
|
|
networks:
|
|
|
|
- plausible
|
|
|
|
|
|
|
|
networks:
|
|
|
|
plausible: {}
|