Skip to content

Commit

Permalink
docker: add healthcheck
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Glimcher <[email protected]>
  • Loading branch information
glimchb committed Jan 11, 2023
1 parent 9404f84 commit 62daf50
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,17 @@ services:
spdk:
condition: service_healthy
command: /opi-spdk-bridge -port=50051
healthcheck:
test: grpcurl -plaintext localhost:50051 list || exit 1

opi-spdk-client:
build:
context: client
networks:
- opi
depends_on:
- opi-spdk-server
opi-spdk-server:
condition: service_healthy
command: /opi-storage-client -addr=opi-spdk-server:50051

networks:
Expand Down

0 comments on commit 62daf50

Please sign in to comment.