X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Fdocker%2Fdocker-compose.yaml;h=950946a19364e12b9106acc653c85805eb678c40;hb=fc82cca2839aa68966cf3a14d25f91cad391c88b;hp=25ed061e21ed0dd5fcef4bdad46bf73ca7bc7537;hpb=9e63737d83bbb79a0ef3fe686371ecaa2ab51a14;p=osm%2Fdevops.git diff --git a/installers/docker/docker-compose.yaml b/installers/docker/docker-compose.yaml index 25ed061e..950946a1 100644 --- a/installers/docker/docker-compose.yaml +++ b/installers/docker/docker-compose.yaml @@ -40,10 +40,10 @@ services: networks: - netOSM healthcheck: - test: echo stat | nc localhost 2181 - interval: 10s + test: echo ruok | nc -w 2 localhost 2181 + interval: 20s timeout: 10s - retries: 3 + retries: 5 logging: driver: "json-file" options: @@ -65,12 +65,10 @@ services: KAFKA_LISTENERS: PLAINTEXT://:9092 KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 - KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'false' - KAFKA_CREATE_TOPICS: 'admin:1:1,users:1:1,projects:1:1,vim_account:1:1,wim_account:1:1,sdn:1:1,k8scluster:1:1,k8srepo:1:1,osmrepos:1:1,vnfd:1:1,nsd:1:1,nst:1:1,pdu:1:1,ns:1:1,nsi:1:1,alarm_request:1:1,alarm_response:1:1' volumes: - /var/run/docker.sock:/var/run/docker.sock healthcheck: - test: zookeeper-shell.sh zookeeper:2181 ls /brokers/ids 2>&1 | grep "Node does not exist" && exit 1 || exit 0 + test: echo ruok | nc -w 2 zookeeper 2181 interval: 20s timeout: 10s retries: 5