ci: wait for hstore container when starting hstream server

This commit is contained in:
Ilya Averyanov 2023-08-17 17:21:55 +03:00
parent 7bad7d68de
commit bd2155198a
1 changed files with 12 additions and 3 deletions

View File

@ -5,8 +5,10 @@ services:
image: hstreamdb/hstream:v0.15.0
container_name: hstreamdb
depends_on:
- zookeeper
- hstore
zookeeper:
condition: service_started
hstore:
condition: service_healthy
# ports:
# - "127.0.0.1:6570:6570"
expose:
@ -53,7 +55,14 @@ services:
--use-tcp --tcp-host $$(hostname -I | awk '{print $$1}') \
--user-admin-port 6440 \
--param enable-dscp-reflection=false \
--no-interactive
--no-interactive \
> /data/store/hstore.log 2>&1
healthcheck:
test: ["CMD", "grep", "LogDevice Cluster running", "/data/store/hstore.log"]
interval: 10s
timeout: 10s
retries: 60
start_period: 60s
zookeeper:
image: zookeeper