d6db315f6894fda76150507aa55d642202f91b34
[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     # Uncomment the following lines to create authenticated topics
19     #KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL_SASL_PLAINTEXT:SASL_PLAINTEXT,EXTERNAL_SASL_PLAINTEXT:SASL_PLAINTEXT
20     #KAFKA_ADVERTISED_LISTENERS: INTERNAL_SASL_PLAINTEXT://kafka:9092
21     #KAFKA_LISTENERS: INTERNAL_SASL_PLAINTEXT://0.0.0.0:9092
22     #KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL_SASL_PLAINTEXT
23     #KAFKA_SASL_ENABLED_MECHANISMS: PLAIN
24     #KAFKA_SASL_MECHANISM_INTER_BROKER_PROTOCOL: PLAIN
25     #KAFKA_AUTHORIZER_CLASS_NAME: org.onap.dmaap.kafkaAuthorize.KafkaCustomAuthorizer
26     #aaf_locate_url: https://aaf-onap-test.osaaf.org:8095
27     # Remove the following 4 lines to create authenticated topics
28     KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL_PLAINTEXT:PLAINTEXT,EXTERNAL_PLAINTEXT:PLAINTEXT
29     KAFKA_ADVERTISED_LISTENERS: INTERNAL_PLAINTEXT://kafka:9092
30     KAFKA_LISTENERS: INTERNAL_PLAINTEXT://0.0.0.0:9092
31     KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL_PLAINTEXT
32    volumes:
33     - /var/run/docker.sock:/var/run/docker.sock
34    depends_on:
35     - zookeeper
36
37   dmaap:
38     image: nexus3.onap.org:10001/onap/dmaap/dmaap-mr:1.1.13
39     ports:
40       - "3904:3904"
41       - "3905:3905"
42     volumes:
43       - /var/tmp/MsgRtrApi.properties:/appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
44     depends_on:
45       - zookeeper
46       - kafka