increase zookeeper timeout in docker-compose.yaml
[dmaap/messagerouter/messageservice.git] / src / main / resources / docker-compose / docker-compose.yml
1 version: '2'
2 services:
3   zookeeper:
4     image: nexus3.onap.org:10001/onap/dmaap/zookeeper:5.0.0
5     ports:
6       - "2181:2181"
7
8   kafka:
9    image: nexus3.onap.org:10001/onap/dmaap/kafka111:1.0.0
10    ports:
11     - "9092:9092"
12    environment:
13     # For creating authenticated topics add AAF locate aplication ip address to host alias aaf-onap-test.osaaf.org
14     # For creating the authenticated topics enable the following property
15     enableCadi: 'false'
16     KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
17     KAFKA_LOG_DIRS: /opt/kafka/data
18     KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS: 40000
19     KAFKA_ZOOKEEPER_SESSION_TIMEOUT_MS: 40000
20     # Uncomment the following lines to create authenticated topics
21     #KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL_SASL_PLAINTEXT:SASL_PLAINTEXT,EXTERNAL_SASL_PLAINTEXT:SASL_PLAINTEXT
22     #KAFKA_ADVERTISED_LISTENERS: INTERNAL_SASL_PLAINTEXT://kafka:9092
23     #KAFKA_LISTENERS: INTERNAL_SASL_PLAINTEXT://0.0.0.0:9092
24     #KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL_SASL_PLAINTEXT
25     #KAFKA_SASL_ENABLED_MECHANISMS: PLAIN
26     #KAFKA_SASL_MECHANISM_INTER_BROKER_PROTOCOL: PLAIN
27     #KAFKA_AUTHORIZER_CLASS_NAME: org.onap.dmaap.kafkaAuthorize.KafkaCustomAuthorizer
28     #aaf_locate_url: https://aaf-onap-test.osaaf.org:8095
29     # Remove the following 4 lines to create authenticated topics
30     KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL_PLAINTEXT:PLAINTEXT,EXTERNAL_PLAINTEXT:PLAINTEXT
31     KAFKA_ADVERTISED_LISTENERS: INTERNAL_PLAINTEXT://kafka:9092
32     KAFKA_LISTENERS: INTERNAL_PLAINTEXT://0.0.0.0:9092
33     KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL_PLAINTEXT
34    volumes:
35     - /var/run/docker.sock:/var/run/docker.sock
36    depends_on:
37     - zookeeper
38
39   dmaap:
40     image: nexus3.onap.org:10001/onap/dmaap/dmaap-mr:1.1.13
41     ports:
42       - "3904:3904"
43       - "3905:3905"
44     volumes:
45       - /var/tmp/MsgRtrApi.properties:/appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
46     depends_on:
47       - zookeeper
48       - kafka