Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
add health-check for db container
theshamuel98e58581e28a
diff --git a/docker-compose.yml b/docker-compose.ymlindex bd63c68b2..9b63c5801 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -10,7 +10,8 @@ services:DATABASE_TYPE: postgresqlAPP_SECRET: replace-me-with-a-random-stringdepends_on:- - db+ db:+ condition: service_healthyrestart: alwaysdb:image: postgres:15-alpine@@ -22,5 +23,10 @@ services:- ./sql/schema.postgresql.sql:/docker-entrypoint-initdb.d/schema.postgresql.sql:ro- umami-db-data:/var/lib/postgresql/datarestart: always+ healthcheck:+ test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]+ interval: 5s+ timeout: 5s+ retries: 5volumes:umami-db-data: