mirror of
https://github.com/plausible/hosting.git
synced 2024-10-17 18:24:44 -05:00
Update compose.example.yml
This commit is contained in:
parent
30741155c9
commit
23ad464ead
@ -8,6 +8,10 @@ services:
|
||||
- db-data:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_PASSWORD=postgres
|
||||
healthcheck:
|
||||
test: pg_isready
|
||||
start_interval: 2s
|
||||
start_period: 1m
|
||||
|
||||
plausible_events_db:
|
||||
image: clickhouse/clickhouse-server:24.3.3.102-alpine
|
||||
@ -17,6 +21,10 @@ services:
|
||||
- event-logs:/var/log/clickhouse-server
|
||||
- ./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
|
||||
healthcheck:
|
||||
test: wget --no-verbose --tries=1 --spider http://127.0.0.1:8123/ping || exit 1
|
||||
start_interval: 2s
|
||||
start_period: 1m
|
||||
ulimits:
|
||||
nofile:
|
||||
soft: 262144
|
||||
@ -26,6 +34,10 @@ services:
|
||||
image: ghcr.io/plausible/community-edition:v2.1.2
|
||||
restart: always
|
||||
command: sh -c "/entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
|
||||
healthcheck:
|
||||
test: wget --no-verbose --tries=1 --spider http://127.0.0.1:8000 || exit 1
|
||||
start_interval: 2s
|
||||
start_period: 1m
|
||||
depends_on:
|
||||
- plausible_db
|
||||
- plausible_events_db
|
||||
|
Loading…
Reference in New Issue
Block a user