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