---
title: "Discussion on \"depends_on isn't enough: making a Compose app wait until Postgres is actually ready\" | Hashnode"
description: "Discussion on \"depends_on isn't enough: making a Compose app wait until Postgres is actually ready\". Your app and Postgres start together with docker compose up. Some days the app connects, other days it fails because the database isn't accepting connections yet. Run it again and it may connect. Here"
url: "https://hashnode.com/posts/depends-on-isn-t-enough-making-a-compose-app-wait-until-postgres-is-actually-ready/6aea9e8f7e6839cf5b941297"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [depends\_on isn't enough: making a Compose app wait until Postgres is actually ready](https://shipkit.hashnode.dev/depends-on-isn-t-enough-making-a-compose-app-wait-until-postgres-is-actually-ready?utm_source=hashnode&utm_medium=feed)

Your app and Postgres start together with docker compose up. Some days the app connects, other days it fails because the database isn't accepting connections yet. Run it again and it may connect. Here

Nov 4 · 6 min read · shipkit.hashnode.dev  
Read the article

-   [#docker](https://hashnode.com/tag/docker)
-   [#docker-compose](https://hashnode.com/tag/docker-compose)
-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#devops](https://hashnode.com/tag/devops)

## Written by

[ShipKit](https://hashnode.com/@shipkit)

@shipkit

  
[View profile](https://hashnode.com/@shipkit)

Teaching notes on GitHub Actions and Docker from ShipKit.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
