Add timeout for Publisher(dmaap-client)
[dcaegen2/services/sdk.git] / rest-services / dmaap-client / src / test / resources / dmaap-msg-router / message-router-compose.yml
1 version: '2'
2 services:
3   zookeeper:
4     image: nexus3.onap.org:10001/onap/dmaap/zookeeper:6.0.3
5     ports:
6       - "2181:2181"
7     environment:
8       ZOOKEEPER_REPLICAS: 1
9       ZOOKEEPER_TICK_TIME: 2000
10       ZOOKEEPER_SYNC_LIMIT: 5
11       ZOOKEEPER_INIT_LIMIT: 10
12       ZOOKEEPER_MAX_CLIENT_CNXNS: 200
13       ZOOKEEPER_AUTOPURGE_SNAP_RETAIN_COUNT: 3
14       ZOOKEEPER_AUTOPURGE_PURGE_INTERVAL: 24
15       ZOOKEEPER_CLIENT_PORT: 2181
16       KAFKA_OPTS: -Djava.security.auth.login.config=/etc/zookeeper/secrets/jaas/zk_server_jaas.conf -Dzookeeper.kerberos.removeHostFromPrincipal=true -Dzookeeper.kerberos.removeRealmFromPrincipal=true -Dzookeeper.authProvider.1=org.apache.zookeeper.server.auth.SASLAuthenticationProvider -Dzookeeper.requireClientAuthScheme=sasl
17       ZOOKEEPER_SERVER_ID: 1
18     volumes:
19       - ./zk_server_jaas.conf:/etc/zookeeper/secrets/jaas/zk_server_jaas.conf
20     networks:
21       net:
22         aliases:
23           - zookeeper
24
25   kafka:
26     image: nexus3.onap.org:10001/onap/dmaap/kafka111:1.0.4
27     ports:
28       - "9092:9092"
29     environment:
30       enableCadi: 'false'
31       KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
32       KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS: 40000
33       KAFKA_ZOOKEEPER_SESSION_TIMEOUT_MS: 40000
34       KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL_PLAINTEXT:PLAINTEXT,EXTERNAL_PLAINTEXT:PLAINTEXT
35       KAFKA_ADVERTISED_LISTENERS: INTERNAL_PLAINTEXT://kafka:9092
36       KAFKA_LISTENERS: INTERNAL_PLAINTEXT://0.0.0.0:9092
37       KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL_PLAINTEXT
38       KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE: 'false'
39       KAFKA_OPTS: -Djava.security.auth.login.config=/etc/kafka/secrets/jaas/zk_client_jaas.conf
40       KAFKA_ZOOKEEPER_SET_ACL: 'true'
41       KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
42     volumes:
43       - ./zk_client_jaas.conf:/etc/kafka/secrets/jaas/zk_client_jaas.conf
44     networks:
45       net:
46         aliases:
47           - kafka
48     depends_on:
49       - zookeeper
50
51   dmaap:
52     image: nexus3.onap.org:10001/onap/dmaap/dmaap-mr:1.1.18
53     ports:
54       - "3904:3904"
55       - "3905:3905"
56     environment:
57       enableCadi: 'false'
58     volumes:
59       - ./MsgRtrApi.properties:/appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
60       - ./logback.xml:/appl/dmaapMR1/bundleconfig/etc/logback.xml
61       - ./cadi.properties:/appl/dmaapMR1/etc/cadi.properties
62     networks:
63       net:
64         aliases:
65           - dmaap
66     depends_on:
67       - zookeeper
68       - kafka
69
70   toxiproxy:
71     image: shopify/toxiproxy:2.1.4
72     ports:
73       - "8474:8474"
74       - "8666:8666"
75     networks:
76       - net
77     depends_on:
78       - dmaap
79
80 networks:
81   net:
82     driver: bridge