aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.postgresql.yml
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2024-03-11 19:58:28 -0400
committerEugene Triguba <eugenetriguba@gmail.com>2024-03-11 19:58:28 -0400
commitd357ce06af74e27074132ab4f0f0ee2702c2b0d1 (patch)
tree57e0973f902769e63e4d73b66cd3f82402405867 /docker-compose.postgresql.yml
parentFix test (diff)
downloadcli-d357ce06af74e27074132ab4f0f0ee2702c2b0d1.zip
Add healthcheck for docker compose databases
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: