efiacor | 125390b | 2020-05-06 01:14:00 +0100 | [diff] [blame^] | 1 | version: '2.1' |
| 2 | services: |
| 3 | zookeeper: |
| 4 | container_name: dmaap-message-router-zookeeper |
| 5 | image: nexus3.onap.org:10001/onap/dmaap/zookeeper:6.0.3 |
| 6 | ports: |
| 7 | - "2181:2181" |
| 8 | environment: |
| 9 | ZOOKEEPER_REPLICAS: 1 |
| 10 | ZOOKEEPER_TICK_TIME: 2000 |
| 11 | ZOOKEEPER_SYNC_LIMIT: 5 |
| 12 | ZOOKEEPER_INIT_LIMIT: 10 |
| 13 | ZOOKEEPER_MAX_CLIENT_CNXNS: 200 |
| 14 | ZOOKEEPER_AUTOPURGE_SNAP_RETAIN_COUNT: 3 |
| 15 | ZOOKEEPER_AUTOPURGE_PURGE_INTERVAL: 24 |
| 16 | ZOOKEEPER_CLIENT_PORT: 2181 |
| 17 | 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 |
| 18 | ZOOKEEPER_SERVER_ID: 1 |
| 19 | volumes: |
| 20 | - ../zk/zk_server_jaas.conf:/etc/zookeeper/secrets/jaas/zk_server_jaas.conf |
| 21 | networks: |
| 22 | bulk-pm-network: |
| 23 | aliases: |
| 24 | - zookeeper |
| 25 | |
| 26 | kafka: |
| 27 | container_name: dmaap-message-router-kafka |
| 28 | image: nexus3.onap.org:10001/onap/dmaap/kafka111:1.0.4 |
| 29 | ports: |
| 30 | - "9092:9092" |
| 31 | environment: |
| 32 | enableCadi: 'false' |
| 33 | KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 |
| 34 | KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS: 40000 |
| 35 | KAFKA_ZOOKEEPER_SESSION_TIMEOUT_MS: 40000 |
| 36 | KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL_PLAINTEXT:PLAINTEXT,EXTERNAL_PLAINTEXT:PLAINTEXT |
| 37 | KAFKA_ADVERTISED_LISTENERS: INTERNAL_PLAINTEXT://kafka:9092 |
| 38 | KAFKA_LISTENERS: INTERNAL_PLAINTEXT://0.0.0.0:9092 |
| 39 | KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL_PLAINTEXT |
| 40 | KAFKA_CONFLUENT_SUPPORT_METRICS_ENABLE: 'false' |
| 41 | KAFKA_OPTS: -Djava.security.auth.login.config=/etc/kafka/secrets/jaas/zk_client_jaas.conf |
| 42 | KAFKA_ZOOKEEPER_SET_ACL: 'true' |
| 43 | KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 |
| 44 | # Reduced the number of partitions only to avoid the timeout error for the first subscribe call in slow environment |
| 45 | KAFKA_OFFSETS_TOPIC_NUM_PARTITIONS: 1 |
| 46 | volumes: |
| 47 | - ../kafka/zk_client_jaas.conf:/etc/kafka/secrets/jaas/zk_client_jaas.conf |
| 48 | networks: |
| 49 | bulk-pm-network: |
| 50 | aliases: |
| 51 | - kafka |
| 52 | depends_on: |
| 53 | - zookeeper |
| 54 | |
| 55 | dmaap-message-router: |
| 56 | container_name: dmaap-message-router-server |
| 57 | image: nexus3.onap.org:10001/onap/dmaap/dmaap-mr:1.1.18 |
| 58 | ports: |
| 59 | - "3904:3904" |
| 60 | - "3905:3905" |
| 61 | environment: |
| 62 | enableCadi: 'false' |
| 63 | volumes: |
| 64 | - ../mr/MsgRtrApi.properties:/appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties |
| 65 | - ../mr/logback.xml:/appl/dmaapMR1/bundleconfig/etc/logback.xml |
| 66 | - ../mr/cadi.properties:/appl/dmaapMR1/etc/cadi.properties |
| 67 | networks: |
| 68 | bulk-pm-network: |
| 69 | aliases: |
| 70 | - dmaap-message-router |
| 71 | depends_on: |
| 72 | - zookeeper |
| 73 | - kafka |
| 74 | |
| 75 | networks: |
| 76 | bulk-pm-network: |
| 77 | driver: bridge |