-
-
Notifications
You must be signed in to change notification settings - Fork 267
/
docker-compose.yml
60 lines (56 loc) · 1.82 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
services:
plausible_db:
image: postgres:16-alpine
container_name: plausible-db
restart: always
expose:
- 5432
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/plausible/database/:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=${PSQL_PASS:-password}
#networks:
# - proxy
plausible_events_db:
image: clickhouse/clickhouse-server:24.3.3.102-alpine
container_name: plausible-events-db
restart: always
environment:
- CLICKHOUSE_UID=1000
- CLICKHOUSE_GID=1000
volumes:
- ${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
ulimits:
nofile:
soft: 262144
hard: 262144
#networks:
# - proxy
plausible:
image: ghcr.io/plausible/community-edition:v2.1
container_name: plausible
restart: always
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
depends_on:
- plausible_db
- plausible_events_db
ports:
- 8000:8000 # WEB UI
expose:
- 8000
env_file:
- .env
#networks:
# - proxy
#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
#networks:
# proxy:
# external: true