Skip to content

Commit

Permalink
Add health check
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <[email protected]>
  • Loading branch information
smarr committed Jan 19, 2024
1 parent 5727ff3 commit 275b32d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: '3'

services:
rebenchdb-app:
build: .
Expand All @@ -11,7 +13,8 @@ services:
RDB_DB: docker
REFRESH_SECRET: refresh
depends_on:
- postgres
postgres:
condition: service_healthy
postgres:
image: postgres:16-alpine
environment:
Expand All @@ -21,3 +24,8 @@ services:
DEV: true
ports:
- '5432:5432'
healthcheck:
test: ['CMD', 'pg_isready -d rebenchdb -U docker']
interval: 5s
timeout: 5s
retries: 5

0 comments on commit 275b32d

Please sign in to comment.