Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Add healthcheck

Bill Yang2834137df9ef
diff --git a/docker-compose.yml b/docker-compose.yml
index 17a0037ea..adc9a8063 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -13,6 +13,12 @@ services:
- CLICKHOUSE_DB=analytics
- CLICKHOUSE_USER=default
- CLICKHOUSE_PASSWORD=frog
+ healthcheck:
+ test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8123/ping"]
+ interval: 3s
+ timeout: 5s
+ retries: 5
+ start_period: 10s
postgres:
image: postgres:latest
@@ -46,8 +52,10 @@ services:
- BETTER_AUTH_SECRET=${BETTER_AUTH_SECRET}
- BASE_URL=${BASE_URL}
depends_on:
- - clickhouse
- - postgres
+ clickhouse:
+ condition: service_healthy
+ postgres:
+
client:
container_name: client