Checking if postgres is ready faster to speed up docker container startup.

This commit is contained in:
Roland 2026-05-03 12:09:12 -06:00
parent da86e6a88d
commit 08612fb9b6
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680

View file

@ -11,6 +11,8 @@ services:
healthcheck:
test: [ 'CMD-SHELL', 'pg_isready -U postgres' ]
interval: 10s
start_period: 30s
start_interval: 1s
volumes:
- ./pg_data:/var/lib/postgresql/data