diff --git a/compose.yml b/compose.yml index bd6d77d..7a048ef 100644 --- a/compose.yml +++ b/compose.yml @@ -34,10 +34,11 @@ services: - "5432:5432" restart: unless-stopped healthcheck: - test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"] + test: ["CMD-SHELL", "pg_isready -h 127.0.0.1 -U postgres -d postgres"] interval: 2s timeout: 2s retries: 5 + start_period: 60s volumes: - ./pgdata:/var/lib/postgresql/data shepherd_broker: