correct healthcheck of database

This commit is contained in:
k
2026-04-21 20:17:50 +08:00
parent 1981b73f1f
commit 1deb6a3918
+1 -1
View File
@@ -10,7 +10,7 @@ services:
volumes: volumes:
- postgres_data:/var/lib/postgresql/data - postgres_data:/var/lib/postgresql/data
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -U trumpsignal -d trumpsignal"] test: ["CMD-SHELL", "pg_isready -U $SERVICE_USER_POSTGRES -d trumpsignal"]
interval: 5s interval: 5s
timeout: 5s timeout: 5s
retries: 20 # up to 100s total wait retries: 20 # up to 100s total wait