---
title: "Discussion on \"Docker Compose depends_on Is Not Enough: Wait for a Healthy Database\" | Hashnode"
description: "Discussion on \"Docker Compose depends_on Is Not Enough: Wait for a Healthy Database\". Plain depends_on only waits for a running container. Use healthchecks, service_healthy and start_interval so your app waits for a ready database."
url: "https://hashnode.com/posts/docker-compose-depends-on-is-not-enough-wait-for-a-healthy-database/6b081ff3b18f8a5be9620ae7"
---

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

Discussion

# [Docker Compose depends\_on Is Not Enough: Wait for a Healthy Database](https://tutorialsmania.hashnode.dev/docker-compose-depends-on-is-not-enough-wait-for-a-healthy-database?utm_source=hashnode&utm_medium=feed)

Plain depends\_on only waits for a running container. Use healthchecks, service\_healthy and start\_interval so your app waits for a ready database.

2d ago · 7 min read · tutorialsmania.hashnode.dev  
Read the article

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

## Written by

[Tutorials Mania](https://hashnode.com/@tutorialsmania)

@tutorialsmania

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

Free tutorials, interview guides and practical insights on AI, technology, SEO and digital marketing.

Tutorials Mania (https://tutorialsmania.com) is a free learning platform with step-by-step tutorials, interview questions and practical guides on AI, cloud, cybersecurity, programming, SEO and digital marketing. We also built a free, no-sign-up resume builder: https://tutorialsmania.com/resume-builder/

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
