ea8c596092d7b73d3e74686005418a783d6dc7e5
[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:1.0.0
5     ports:
6       - "2181:2181"
7
8   kafka:
9    #CADI integrated kafka image
10    #image: nexus3.onap.org:10001/onap/dmaap/kafka01101:0.0.2
11    image: nexus3.onap.org:10001/onap/dmaap/kafka01101:0.0.1
12    ports:
13     - "9092:9092"
14    environment:
15     enableCadi: 'false'
16     KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
17     #Properties required for using the CADI integrated Kafka
18     #KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL_SASL_PLAINTEXT:SASL_PLAINTEXT,EXTERNAL_SASL_PLAINTEXT:SASL_PLAINTEXT
19     #KAFKA_ADVERTISED_LISTENERS: INTERNAL_SASL_PLAINTEXT://kafka:9092
20     #KAFKA_LISTENERS: INTERNAL_SASL_PLAINTEXT://0.0.0.0:9092
21     #KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL_SASL_PLAINTEXT
22     #KAFKA_SASL_ENABLED_MECHANISMS: PLAIN
23     #KAFKA_SASL_MECHANISM_INTER_BROKER_PROTOCOL: PLAIN
24     #KAFKA_AUTHORIZER_CLASS_NAME: org.onap.dmaap.kafkaAuthorize.KafkaCustomAuthorizer
25     #aaf_locate_url: https://aaf-onap-test.osaaf.org:8095
26     #Remove the below 4 properties if CADI is enabled
27     KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL_PLAINTEXT:PLAINTEXT,EXTERNAL_PLAINTEXT:PLAINTEXT
28     KAFKA_ADVERTISED_LISTENERS: INTERNAL_PLAINTEXT://kafka:9092
29     KAFKA_LISTENERS: INTERNAL_PLAINTEXT://0.0.0.0:9092
30     KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL_PLAINTEXT
31    volumes:
32     - /var/run/docker.sock:/var/run/docker.sock
33    depends_on:
34     - zookeeper
35
36   dmaap:
37     image: nexus3.onap.org:10001/onap/dmaap/dmaap-mr:1.1.9
38     ports:
39       - "3904:3904"
40       - "3905:3905"
41     volumes:
42       - /var/tmp/MsgRtrApi.properties:/appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
43     depends_on:
44       - zookeeper
45       - kafka