An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Fix healthcheck for Postgres in Authentic compose stack
Márton Szücsbdcb46720854
diff --git a/templates/compose/authentik.yaml b/templates/compose/authentik.yamlindex 51360e3497..4fa7a7617b 100644--- a/templates/compose/authentik.yaml+++ b/templates/compose/authentik.yaml@@ -9,7 +9,7 @@ services:image: docker.io/library/postgres:12-alpinerestart: unless-stoppedhealthcheck:- test: ["CMD-SHELL", "pg_isready -d authentik -U $${SERVICE_USER_POSTGRESQL}"]+ test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]interval: 2stimeout: 10sretries: 15@@ -55,8 +55,10 @@ services:- ./media:/media- ./custom-templates:/templatesdepends_on:- - postgresql- - redis+ postgresql:+ condition: service_healthy+ redis:+ condition: service_healthyauthentik-worker:image: ghcr.io/goauthentik/server:${AUTHENTIK_TAG:-2024.2.2}restart: unless-stopped@@ -90,5 +92,7 @@ services:- ./certs:/certs- ./custom-templates:/templatesdepends_on:- - postgresql- - redis+ postgresql:+ condition: service_healthy+ redis:+ condition: service_healthy