|
| 1 | +# |
| 2 | +# Licensed to the Apache Software Foundation (ASF) under one or more |
| 3 | +# contributor license agreements. See the NOTICE file distributed with |
| 4 | +# this work for additional information regarding copyright ownership. |
| 5 | +# The ASF licenses this file to You under the Apache License, Version 2.0 |
| 6 | +# (the "License"); you may not use this file except in compliance with |
| 7 | +# the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | +# |
| 17 | + |
| 18 | +services: |
| 19 | + oap: |
| 20 | + container_name: oap |
| 21 | + image: apache/skywalking-oap-server:9.3.0 |
| 22 | + # Python agent supports gRPC/ HTTP/ Kafka reporting |
| 23 | + expose: |
| 24 | + - 11800 # gRPC |
| 25 | + - 12800 # HTTP |
| 26 | + networks: |
| 27 | + - manual |
| 28 | + environment: |
| 29 | + SW_KAFKA_FETCHER: default |
| 30 | + SW_KAFKA_FETCHER_SERVERS: kafka:9092 |
| 31 | + SW_KAFKA_FETCHER_PARTITIONS: 2 |
| 32 | + SW_KAFKA_FETCHER_PARTITIONS_FACTOR: 1 |
| 33 | + healthcheck: |
| 34 | + test: [ "CMD", "bash", "-c", "cat < /dev/null > /dev/tcp/127.0.0.1/11800" ] |
| 35 | + interval: 5s |
| 36 | + timeout: 60s |
| 37 | + retries: 120 |
| 38 | + ports: |
| 39 | + - "12800:12800" |
| 40 | + - "11800:11800" |
| 41 | + depends_on: |
| 42 | + - kafka |
| 43 | + |
| 44 | + |
| 45 | + ui: |
| 46 | + image: apache/skywalking-ui:9.3.0 |
| 47 | + container_name: ui |
| 48 | + depends_on: |
| 49 | + oap: |
| 50 | + condition: service_healthy |
| 51 | + networks: |
| 52 | + - manual |
| 53 | + ports: |
| 54 | + - "8080:8080" |
| 55 | + environment: |
| 56 | + SW_OAP_ADDRESS: "http://oap:12800" |
| 57 | + |
| 58 | + zookeeper: |
| 59 | + container_name: zk |
| 60 | + image: confluentinc/cp-zookeeper:latest |
| 61 | + ports: |
| 62 | + - "2181:2181" |
| 63 | + environment: |
| 64 | + ZOOKEEPER_CLIENT_PORT: 2181 |
| 65 | + ZOOKEEPER_TICK_TIME: 2000 |
| 66 | + networks: |
| 67 | + - manual |
| 68 | + |
| 69 | + kafka: |
| 70 | + container_name: kafka |
| 71 | + image: confluentinc/cp-kafka |
| 72 | + expose: |
| 73 | + - 9092 |
| 74 | + - 9094 |
| 75 | + ports: |
| 76 | + - 9092:9092 |
| 77 | + - 9094:9094 |
| 78 | + depends_on: |
| 79 | + - zookeeper |
| 80 | + environment: |
| 81 | + KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 |
| 82 | + KAFKA_LISTENERS: INTERNAL://0.0.0.0:9092,OUTSIDE://0.0.0.0:9094 |
| 83 | + KAFKA_ADVERTISED_LISTENERS: INTERNAL://kafka:9092,OUTSIDE://localhost:9094 |
| 84 | + KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL:PLAINTEXT,OUTSIDE:PLAINTEXT |
| 85 | + KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL |
| 86 | + KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 |
| 87 | + networks: |
| 88 | + - manual |
| 89 | + |
| 90 | +# |
| 91 | +# kafka-ui: |
| 92 | +# image: provectuslabs/kafka-ui |
| 93 | +# container_name: kafka-ui |
| 94 | +# ports: |
| 95 | +# - "8088:8080" |
| 96 | +# restart: always |
| 97 | +# environment: |
| 98 | +# - KAFKA_CLUSTERS_0_NAME=local |
| 99 | +# - KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=kafka:9092 |
| 100 | +# depends_on: |
| 101 | +# - kafka |
| 102 | +# networks: |
| 103 | +# - manual |
| 104 | + |
| 105 | +networks: |
| 106 | + manual: |
0 commit comments