healthcheck for zookeeper added
This commit is contained in:
parent
ebbe098ced
commit
380e496705
1 changed files with 8 additions and 2 deletions
|
|
@ -38,7 +38,7 @@ services:
|
|||
- ./mnt/logs/clearing:/opt/clearing/bin/log
|
||||
- ./mnt/logs/tester:/opt/clearing/clearing_testing_utils/clearing-tester/logs
|
||||
- ./mnt/logs/converter:/opt/clearing/clearing_testing_utils/clearing-converter/logs
|
||||
# - ./mnt/dbfout:/opt/clearing/files/dbf/exporter/
|
||||
# - ./mnt/dbfout:/opt/clearing/files/dbf/exporter/
|
||||
# restart: always
|
||||
|
||||
zookeeper:
|
||||
|
|
@ -52,6 +52,11 @@ services:
|
|||
ZOOKEEPER_TICK_TIME: 2000
|
||||
ports:
|
||||
- "22181:2181"
|
||||
healthcheck:
|
||||
test: nc -z localhost 2181 || exit -1
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 100
|
||||
|
||||
kafka:
|
||||
image: mirror.gcr.io/confluentinc/cp-kafka:6.2.3.amd64
|
||||
|
|
@ -70,7 +75,8 @@ services:
|
|||
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
|
||||
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
|
||||
depends_on:
|
||||
- zookeeper
|
||||
zookeeper:
|
||||
condition: service_healthy
|
||||
|
||||
sftp:
|
||||
image: mirror.gcr.io/atmoz/sftp
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue