blob: 48cc04ceffdc6e04d537e26d7201e3f5e6f69575 [file] [log] [blame]
ecaiyanlinux4b0a0a22020-08-17 13:29:16 +02001# Copyright (C) 2020 Nordix Foundation. All rights reserved.
2# ========================================================================
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14# ============LICENSE_END=================================================
15#
16version: '3.5'
17
18networks:
19 default:
20 driver: bridge
21 name: nonrtric-docker-net
22
23services:
24 zookeeper:
25 image: nexus3.onap.org:10001/onap/dmaap/zookeeper:6.0.3
26 container_name: zookeeper
27 ports:
28 - "2181:2181"
29 environment:
30 ZOOKEEPER_REPLICAS: 1
31 ZOOKEEPER_TICK_TIME: 2000
32 ZOOKEEPER_SYNC_LIMIT: 5
33 ZOOKEEPER_INIT_LIMIT: 10
34 ZOOKEEPER_MAX_CLIENT_CNXNS: 200
35 ZOOKEEPER_AUTOPURGE_SNAP_RETAIN_COUNT: 3
36 ZOOKEEPER_AUTOPURGE_PURGE_INTERVAL: 24
37 ZOOKEEPER_CLIENT_PORT: 2181
38 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
39 ZOOKEEPER_SERVER_ID: 1
40 volumes:
41 - ./zk/zk_server_jaas.conf:/etc/zookeeper/secrets/jaas/zk_server_jaas.conf
42 networks:
43 - default
44
45 kafka:
46 image: nexus3.onap.org:10001/onap/dmaap/kafka111:1.0.4
47 container_name: kafka
48 ports:
49 - "9092:9092"
50 environment:
51 enableCadi: 'false'
52 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
53 KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS: 40000
54 KAFKA_ZOOKEEPER_SESSION_TIMEOUT_MS: 40000
55 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL_PLAINTEXT:PLAINTEXT,EXTERNAL_PLAINTEXT:PLAINTEXT
56 KAFKA_ADVERTISED_LISTENERS: INTERNAL_PLAINTEXT://kafka:9092
57 KAFKA_LISTENERS: INTERNAL_PLAINTEXT://0.0.0.0:9092
58 KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL_PLAINTEXT
59 KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE: 'false'
60 KAFKA_OPTS: -Djava.security.auth.login.config=/etc/kafka/secrets/jaas/zk_client_jaas.conf
61 KAFKA_ZOOKEEPER_SET_ACL: 'true'
62 KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
63 # Reduced the number of partitions only to avoid the timeout error for the first subscribe call in slow environment
64 KAFKA_OFFSETS_TOPIC_NUM_PARTITIONS: 1
65 volumes:
66 - ./kafka/zk_client_jaas.conf:/etc/kafka/secrets/jaas/zk_client_jaas.conf
67 networks:
68 - default
69 depends_on:
70 - zookeeper
71
72 dmaap:
73 image: nexus3.onap.org:10001/onap/dmaap/dmaap-mr:1.1.18
74 container_name: dmaap-mr
75 ports:
76 - "3904:3904"
77 - "3905:3905"
78 environment:
79 enableCadi: 'false'
80 volumes:
81 - ./mr/MsgRtrApi.properties:/appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
82 - ./mr/logback.xml:/appl/dmaapMR1/bundleconfig/etc/logback.xml
83 - ./mr/cadi.properties:/appl/dmaapMR1/etc/cadi.properties
84 networks:
85 - default
86 depends_on:
87 - zookeeper
88 - kafka