Skip to content

Commit a6ef840

Browse files
jrcoakona-agent
andcommitted
Fix PostgreSQL health check pattern in startup script
- Change health check grep pattern from 'healthy' to '(healthy)' - Resolves timeout issue where container was healthy but pattern didn't match - Ensures proper detection of PostgreSQL container health status Co-authored-by: Ona <no-reply@ona.com>
1 parent f049b82 commit a6ef840

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

startup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ fi
101101

102102
# Wait for PostgreSQL container to be healthy
103103
print_status "Waiting for PostgreSQL container to be healthy..."
104-
if ! wait_for_service "PostgreSQL Container" "docker-compose ps postgres | grep -q 'healthy'" 90 5; then
104+
if ! wait_for_service "PostgreSQL Container" "docker-compose ps postgres | grep -q '(healthy)'" 90 5; then
105105
print_error "PostgreSQL container failed to become healthy"
106106
docker-compose logs
107107
exit 1

0 commit comments

Comments
 (0)