improve health checks

This commit is contained in:
ruslandoga 2024-09-13 13:38:57 +07:00
parent 611730b61f
commit 183235465b

View File

@ -8,9 +8,8 @@ services:
- POSTGRES_PASSWORD=postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 30s
timeout: 5s
retries: 5
start_interval: 2s
start_period: 1m
plausible_events_db:
image: clickhouse/clickhouse-server:24.3.3.102-alpine
@ -25,10 +24,9 @@ services:
soft: 262144
hard: 262144
healthcheck:
test: ["CMD-SHELL", "wget -q -O - http://localhost:8123/ping || exit 1"]
interval: 30s
timeout: 5s
retries: 5
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:8123/ping || exit 1"]
start_interval: 2s
start_period: 1m
plausible:
image: ghcr.io/plausible/community-edition:v2.1.2