2023-02-15 21:45:31 +00:00
|
|
|
services:
|
|
|
|
|
|
|
|
plausible_db:
|
2024-09-27 19:17:43 +00:00
|
|
|
image: postgres:16-alpine
|
2024-02-25 21:25:29 +00:00
|
|
|
container_name: plausible-db
|
2024-11-04 12:08:51 +00:00
|
|
|
restart: always
|
|
|
|
expose:
|
|
|
|
- 5432
|
2023-02-15 21:45:31 +00:00
|
|
|
volumes:
|
2023-02-25 13:09:52 +00:00
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/plausible/database/:/var/lib/postgresql/data
|
2023-02-15 21:45:31 +00:00
|
|
|
environment:
|
2024-01-14 19:35:29 +00:00
|
|
|
- POSTGRES_PASSWORD=${PSQL_PASS:-password}
|
2024-02-25 21:25:29 +00:00
|
|
|
#networks:
|
|
|
|
# - proxy
|
2023-02-15 21:45:31 +00:00
|
|
|
|
|
|
|
plausible_events_db:
|
2024-11-04 12:08:51 +00:00
|
|
|
image: clickhouse/clickhouse-server:24.3.3.102-alpine
|
2023-02-15 21:45:31 +00:00
|
|
|
container_name: plausible-events-db
|
|
|
|
restart: always
|
2024-02-25 21:25:29 +00:00
|
|
|
environment:
|
|
|
|
- CLICKHOUSE_UID=1000
|
|
|
|
- CLICKHOUSE_GID=1000
|
2023-02-15 21:45:31 +00:00
|
|
|
volumes:
|
2023-02-25 13:09:52 +00:00
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/plausible/event-data:/var/lib/clickhouse
|
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/plausible/clickhouse/clickhouse-config.xml:/etc/clickhouse-server/config.d/logging.xml:ro
|
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/plausible/clickhouse/clickhouse-user-config.xml:/etc/clickhouse-server/users.d/logging.xml:ro
|
2023-02-15 21:45:31 +00:00
|
|
|
ulimits:
|
|
|
|
nofile:
|
|
|
|
soft: 262144
|
|
|
|
hard: 262144
|
2024-02-25 21:25:29 +00:00
|
|
|
#networks:
|
|
|
|
# - proxy
|
2023-02-15 21:45:31 +00:00
|
|
|
|
|
|
|
plausible:
|
2024-11-04 12:08:51 +00:00
|
|
|
image: ghcr.io/plausible/community-edition:v2.1
|
2023-02-15 21:45:31 +00:00
|
|
|
container_name: plausible
|
|
|
|
restart: always
|
2024-05-27 08:22:02 +00:00
|
|
|
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
|
2023-02-15 21:45:31 +00:00
|
|
|
depends_on:
|
|
|
|
- plausible_db
|
|
|
|
- plausible_events_db
|
|
|
|
ports:
|
|
|
|
- 8000:8000 # WEB UI
|
2024-11-04 12:08:51 +00:00
|
|
|
expose:
|
|
|
|
- 8000
|
2023-02-15 21:45:31 +00:00
|
|
|
env_file:
|
2024-01-14 19:35:29 +00:00
|
|
|
- .env
|
2023-02-26 03:01:31 +00:00
|
|
|
#networks:
|
|
|
|
# - proxy
|
2023-02-15 21:45:31 +00:00
|
|
|
#labels:
|
|
|
|
# - traefik.enable=true
|
|
|
|
# - traefik.http.routers.plausible.rule=Host(`plausible.example.com`)
|
|
|
|
# - traefik.http.services.plausible.loadbalancer.server.port=8000
|
|
|
|
# - traefik.docker.network=proxy
|
|
|
|
# # Part for local lan services only
|
|
|
|
# # - traefik.http.routers.plausible.middlewares=local-ipwhitelist@file
|
2023-02-26 03:01:31 +00:00
|
|
|
|
|
|
|
#networks:
|
|
|
|
# proxy:
|
|
|
|
# external: true
|