Skip to content

Commit 8110d2a

Browse files
committed
PI-2517 - add health check to docker compose and update make file to add --wait to docker compose up
1 parent 4cd02f7 commit 8110d2a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ serve-dependencies:
1212
docker compose up hmpps-auth prism local-stack-aws --build -d
1313

1414
serve: build-dev
15-
docker compose up -d
15+
docker compose up -d --wait
1616

1717
publish:
1818
./scripts/publish.sh

docker-compose.yml

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ services:
3232
context: .
3333
dockerfile: Dockerfile.prism
3434
container_name: prism
35+
healthcheck:
36+
test: 'wget --header="Authorization: Bearer abc" http://127.0.0.1:4017/prisoner/A1234AL'
3537
ports:
3638
- '4010:4010'
3739
- '4011:4011'

0 commit comments

Comments
 (0)