blob: c468b2ffd0ba3da0b8ad3a8b4906dc811259d2ed [file] [log] [blame]
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +01001# ============LICENSE_START===============================================
2# Copyright (C) 2020 Nordix Foundation. All rights reserved.
3# ========================================================================
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15# ============LICENSE_END=================================================
16#
17
18version: '3.5'
19networks:
20 default:
21 external:
22 name: ${DOCKER_SIM_NWNAME}
23
24services:
25 zookeeper:
26 image: $ONAP_ZOOKEEPER_IMAGE
27 container_name: $MR_ZOOKEEPER_APP_NAME
28 ports:
29 - "2181:2181"
30 environment:
31 ZOOKEEPER_REPLICAS: 1
32 ZOOKEEPER_TICK_TIME: 2000
33 ZOOKEEPER_SYNC_LIMIT: 5
34 ZOOKEEPER_INIT_LIMIT: 10
35 ZOOKEEPER_MAX_CLIENT_CNXNS: 200
36 ZOOKEEPER_AUTOPURGE_SNAP_RETAIN_COUNT: 3
37 ZOOKEEPER_AUTOPURGE_PURGE_INTERVAL: 24
38 ZOOKEEPER_CLIENT_PORT: 2181
39 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
40 ZOOKEEPER_SERVER_ID: 1
41 volumes:
42 - ./mnt/zk/zk_server_jaas.conf:/etc/zookeeper/secrets/jaas/zk_server_jaas.conf
43 networks:
44 - default
BjornMagnussonXAbe9a07f2021-02-25 10:51:46 +010045 labels:
46 - "nrttest_app=DMAAPMR"
47 - "nrttest_dp=ZooKeeper"
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +010048
49 kafka:
50 image: $ONAP_KAFKA_IMAGE
51 container_name: $MR_KAFKA_APP_NAME
52 ports:
53 - "9092:9092"
54 environment:
55 enableCadi: 'false'
56 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
57 KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS: 40000
58 KAFKA_ZOOKEEPER_SESSION_TIMEOUT_MS: 40000
59 KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL_PLAINTEXT:PLAINTEXT,EXTERNAL_PLAINTEXT:PLAINTEXT
60 KAFKA_ADVERTISED_LISTENERS: INTERNAL_PLAINTEXT://kafka:9092
61 KAFKA_LISTENERS: INTERNAL_PLAINTEXT://0.0.0.0:9092
62 KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL_PLAINTEXT
63 KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE: 'false'
64 KAFKA_OPTS: -Djava.security.auth.login.config=/etc/kafka/secrets/jaas/zk_client_jaas.conf
65 KAFKA_ZOOKEEPER_SET_ACL: 'true'
66 KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
67 # Reduced the number of partitions only to avoid the timeout error for the first subscribe call in slow environment
68 KAFKA_OFFSETS_TOPIC_NUM_PARTITIONS: 1
69 volumes:
70 - ./mnt/kafka/zk_client_jaas.conf:/etc/kafka/secrets/jaas/zk_client_jaas.conf
71 networks:
BjornMagnussonXAbe9a07f2021-02-25 10:51:46 +010072 - default
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +010073 depends_on:
74 - zookeeper
BjornMagnussonXAbe9a07f2021-02-25 10:51:46 +010075 labels:
76 - "nrttest_app=DMAAPMR"
77 - "nrttest_dp=Kafka"
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +010078
79 dmaap:
80 image: $ONAP_DMAAPMR_IMAGE
81 container_name: $MR_DMAAP_APP_NAME
82 ports:
83 - ${MR_DMAAP_LOCALHOST_PORT}:${MR_INTERNAL_PORT}
84 - ${MR_DMAAP_LOCALHOST_SECURE_PORT}:${MR_INTERNAL_SECURE_PORT}
85 environment:
86 enableCadi: 'false'
87 volumes:
88 - ./mnt/mr/MsgRtrApi.properties:/appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
89 - ./mnt/mr/logback.xml:/appl/dmaapMR1/bundleconfig/etc/logback.xml
90 - ./mnt/mr/cadi.properties:/appl/dmaapMR1/etc/cadi.properties
91 networks:
92 - default
93 depends_on:
94 - zookeeper
95 - kafka
BjornMagnussonXAbe9a07f2021-02-25 10:51:46 +010096 labels:
97 - "nrttest_app=DMAAPMR"
98 - "nrttest_dp=DMAAP Message Router"