lapentafd | 6360bbb | 2024-04-05 09:49:44 +0100 | [diff] [blame] | 1 | # ========================LICENSE_START=================================
|
| 2 | # O-RAN-SC
|
| 3 | #
|
| 4 | # Copyright (C) 2024: OpenInfra Foundation Europe
|
| 5 | # ========================================================================
|
| 6 | # Licensed under the Apache License, Version 2.0 (the "License");
|
| 7 | # you may not use this file except in compliance with the License.
|
| 8 | # You may obtain a copy of the License at
|
| 9 | #
|
| 10 | # http://www.apache.org/licenses/LICENSE-2.0
|
| 11 | #
|
| 12 | # Unless required by applicable law or agreed to in writing, software
|
| 13 | # distributed under the License is distributed on an "AS IS" BASIS,
|
| 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 15 | # See the License for the specific language governing permissions and
|
| 16 | # limitations under the License.
|
| 17 | # ============LICENSE_END=================================================
|
| 18 |
|
| 19 | version: '2'
|
| 20 |
|
| 21 | networks:
|
| 22 | my-network:
|
| 23 | name: kafka
|
| 24 | driver: bridge
|
| 25 |
|
| 26 | services:
|
| 27 | kafka-zkless:
|
| 28 | container_name: kafka-zkless
|
| 29 | image: quay.io/strimzi/kafka:latest-kafka-2.8.1-amd64
|
| 30 | command:
|
| 31 | [
|
| 32 | "sh",
|
| 33 | "-c",
|
| 34 | "export CLUSTER_ID=$$(bin/kafka-storage.sh random-uuid) && bin/kafka-storage.sh format -t $$CLUSTER_ID -c config/kraft/server.properties && bin/kafka-server-start.sh config/kraft/server.properties --override advertised.listeners=$${KAFKA_ADVERTISED_LISTENERS} --override listener.security.protocol.map=$${KAFKA_LISTENER_SECURITY_PROTOCOL_MAP} --override listeners=$${KAFKA_LISTENERS}",
|
| 35 | ]
|
| 36 | ports:
|
| 37 | - "9092:9092"
|
| 38 | environment:
|
| 39 | LOG_DIR: "/tmp/logs"
|
| 40 | KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
|
| 41 | KAFKA_LISTENERS: PLAINTEXT://:29092,PLAINTEXT_HOST://:9092,CONTROLLER://:9093
|
| 42 | KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka-zkless:29092,PLAINTEXT_HOST://kafka-zkless:9092
|
| 43 | tty: true
|
| 44 | stdin_open: true
|
| 45 | networks:
|
| 46 | - my-network
|
| 47 |
|
| 48 | informationcoordinator:
|
| 49 | image: nexus3.o-ran-sc.org:10001/o-ran-sc/nonrtric-plt-informationcoordinatorservice:1.6.0
|
| 50 | container_name: informationcoordinatorservice
|
| 51 | ports:
|
| 52 | - "8083:8083"
|
| 53 | volumes:
|
| 54 | - ./application.yaml:/opt/app/information-coordinator-service/config/application.yaml
|
| 55 | networks:
|
| 56 | - my-network
|
| 57 |
|
| 58 | kafka-producer:
|
| 59 | image: o-ran-sc/nonrtric-sample-icsproducer:latest
|
| 60 | container_name: kafka-producer
|
| 61 | environment:
|
| 62 | - KAFKA_SERVERS=kafka-zkless:9092
|
| 63 | ports:
|
| 64 | - "8080:8080"
|
| 65 | networks:
|
| 66 | - my-network
|
| 67 |
|
| 68 | kafka-consumer:
|
| 69 | image: o-ran-sc/nonrtric-sample-icsconsumer:latest
|
| 70 | container_name: kafka-consumer
|
| 71 | environment:
|
| 72 | - KAFKA_SERVERS=kafka-zkless:9092
|
| 73 | ports:
|
| 74 | - "8081:8081"
|
| 75 | networks:
|
| 76 | - my-network
|
| 77 |
|
| 78 | curl-client:
|
| 79 | image: curlimages/curl:latest
|
| 80 | container_name: curl-client
|
| 81 | command: ["tail", "-f", "/dev/null"]
|
| 82 | networks:
|
| 83 | - my-network
|