aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.postgresql.yml
diff options
context:
space:
mode:
Diffstat (limited to 'docker-compose.postgresql.yml')
-rw-r--r--docker-compose.postgresql.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/docker-compose.postgresql.yml b/docker-compose.postgresql.yml
index f3052fd..b2f6107 100644
--- a/docker-compose.postgresql.yml
+++ b/docker-compose.postgresql.yml
@@ -4,6 +4,11 @@ services:
postgres_db:
image: postgres:16.1-alpine3.19
container_name: bolt_postgres_db
+ healthcheck:
+ test: ["CMD-SHELL", "pg_isready -U postgres"]
+ interval: 10s
+ timeout: 5s
+ retries: 5
ports:
- "${BOLT_DB_CONN_PORT:?err}:5432"
environment: