Skip to content

Commit

Permalink
feat(db): add redis to compose file
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Glimcher <[email protected]>
  • Loading branch information
glimchb committed Sep 18, 2023
1 parent c838c00 commit 034e181
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,19 @@ services:
depends_on:
spdk:
condition: service_healthy
redis:
condition: service_healthy
command: sh -c "/opi-spdk-bridge -port=50051 -spdk_addr=/var/tmp/spdk.sock -tcp_trid=$$(getent hosts spdk | awk '{ print $$1 }'):7777"
healthcheck:
test: grpcurl -plaintext localhost:50051 list || exit 1

redis:
image: redis:7.2.1-alpine3.18
networks:
- opi
healthcheck:
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]

opi-spdk-client:
image: ghcr.io/opiproject/godpu:main@sha256:59d56d2f2bfe500b102ca197d0a87c897f05a565bed9de0f827f4f1ff71999f7
networks:
Expand Down

0 comments on commit 034e181

Please sign in to comment.