94f8d939a9ffaa1526d2b332ef38c489ba7bdaea
[dmaap/messagerouter/messageservice.git] / demo / docker_files / __docker-compose.yml
1 version: '2'
2 networks:
3   default:
4     driver: bridge
5     driver_opts:
6       com.docker.network.driver.mtu: ${MTU}
7 services:
8   zookeeper:
9     image: nexus3.onap.org:10001/onap/dmaap/zookeeper:1.0.0
10     ports:
11       - "2181:2181"
12     volumes:
13       - ./data-zookeeper:/var/lib/zookeeper/data
14     logging:
15       driver: "json-file"
16       options:
17         max-size: "30m"
18         max-file: "5"
19
20   kafka:
21     #CADI integrated kafka image
22     #image: nexus3.onap.org:10001/onap/dmaap/kafka01101:0.0.2
23     image: nexus3.onap.org:10001/onap/dmaap/kafka01101:0.0.1
24     ports:
25       - "9092:9092"
26     environment:
27       enableCadi: 'false'
28       KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
29       #Properties required for using the CADI integrated Kafka
30       #KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL_SASL_PLAINTEXT:SASL_PLAINTEXT,EXTERNAL_SASL_PLAINTEXT:SASL_PLAINTEXT
31       #KAFKA_ADVERTISED_LISTENERS: INTERNAL_SASL_PLAINTEXT://kafka:9092
32       #KAFKA_LISTENERS: INTERNAL_SASL_PLAINTEXT://0.0.0.0:9092
33       #KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL_SASL_PLAINTEXT
34       #KAFKA_SASL_ENABLED_MECHANISMS: PLAIN
35       #KAFKA_SASL_MECHANISM_INTER_BROKER_PROTOCOL: PLAIN
36       #KAFKA_AUTHORIZER_CLASS_NAME: org.onap.dmaap.kafkaAuthorize.KafkaCustomAuthorizer
37       #aaf_locate_url: https://aaf-onap-test.osaaf.org:8095
38       #Remove the below 4 properties if CADI
39       KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL_PLAINTEXT:PLAINTEXT,EXTERNAL_PLAINTEXT:PLAINTEXT
40       KAFKA_ADVERTISED_LISTENERS: INTERNAL_PLAINTEXT://kafka:9092
41       KAFKA_LISTENERS: INTERNAL_PLAINTEXT://0.0.0.0:9092
42       KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL_PLAINTEXT
43     volumes:
44       - /var/run/docker.sock:/var/run/docker.sock
45     logging:
46       driver: "json-file"
47       options:
48         max-size: "30m"
49         max-file: "5"
50
51   dmaap:
52     image: ${NEXUS_DOCKER_REPO}/onap/dmaap/dmaap-mr:1.1.9
53     ports:
54       - "3904:3904"
55       - "3905:3905"
56     volumes:
57       - ./MsgRtrApi.properties:/appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties 
58       - ./cadi.properties:/appl/dmaapMR1/etc/cadi.properties 
59       - ./keystore.jks:/appl/dmaapMR1/bundleconfig/etc/keystore.jks 
60     depends_on:
61       - zookeeper
62       - kafka
63     logging:
64       driver: "json-file"
65       options:
66         max-size: "30m"
67         max-file: "5"