summaryrefslogtreecommitdiff
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorPaolo Melchiorre <paolo@melchiorre.org>2025-01-20 12:43:35 +0100
committerBaptiste Mispelon <bmispelon@gmail.com>2025-01-20 15:16:25 +0100
commit1bb286daa80cb8b5d5cc863e711499d3c30e60a3 (patch)
treec591b70f17dc93cc4e521bbce943fcad7fc1dd9f /docker-compose.yml
parent923d3fb38bc9b13e3a4f7da257b92941b22df096 (diff)
Move db healtcheck in docker compose
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 8f875e2b..d7935b15 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -29,3 +29,8 @@ services:
- POSTGRES_USER=djangoproject
- POSTGRES_PASSWORD=secret
- POSTGRES_DB=djangoproject
+ healthcheck:
+ test: ["CMD", "pg_isready", "--host", "db", "--port", "5432"]
+ interval: 1s
+ timeout: 10s
+ retries: 10