|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one or more |
| 2 | +# contributor license agreements. See the NOTICE file distributed with |
| 3 | +# this work for additional information regarding copyright ownership. |
| 4 | +# The ASF licenses this file to You under the Apache License, Version 2.0 |
| 5 | +# (the "License"); you may not use this file except in compliance with |
| 6 | +# the License. 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 | + |
| 16 | +version: '2.1' |
| 17 | + |
| 18 | +services: |
| 19 | + etcd: |
| 20 | + extends: |
| 21 | + file: ../../script/docker-compose/base-compose.yml |
| 22 | + service: etcd |
| 23 | + networks: |
| 24 | + - e2e |
| 25 | + |
| 26 | + data: |
| 27 | + extends: |
| 28 | + file: ../../script/docker-compose/base-compose.yml |
| 29 | + service: data |
| 30 | + command: data --etcd-endpoints=http://etcd:2379 --schema-registry-mode=property --schema-property-client-sync-interval=10s |
| 31 | + networks: |
| 32 | + - e2e |
| 33 | + |
| 34 | + liaison: |
| 35 | + extends: |
| 36 | + file: ../../script/docker-compose/base-compose.yml |
| 37 | + service: liaison |
| 38 | + command: liaison --etcd-endpoints=http://etcd:2379 --schema-registry-mode=property --schema-property-client-sync-interval=10s |
| 39 | + networks: |
| 40 | + - e2e |
| 41 | + |
| 42 | + oap: |
| 43 | + extends: |
| 44 | + file: ../../script/docker-compose/base-compose.yml |
| 45 | + service: oap |
| 46 | + environment: |
| 47 | + SW_STORAGE: banyandb |
| 48 | + SW_STORAGE_BANYANDB_TARGETS: "liaison:17912" |
| 49 | + ports: |
| 50 | + - 12800 |
| 51 | + depends_on: |
| 52 | + liaison: |
| 53 | + condition: service_healthy |
| 54 | + |
| 55 | + agent: |
| 56 | + extends: |
| 57 | + file: ../../script/docker-compose/base-compose.yml |
| 58 | + service: agent |
| 59 | + networks: |
| 60 | + - e2e |
| 61 | + |
| 62 | + provider: |
| 63 | + extends: |
| 64 | + file: ../../script/docker-compose/base-compose.yml |
| 65 | + service: provider |
| 66 | + ports: |
| 67 | + - 9090 |
| 68 | + networks: |
| 69 | + - e2e |
| 70 | + depends_on: |
| 71 | + oap: |
| 72 | + condition: service_healthy |
| 73 | + agent: |
| 74 | + condition: service_completed_successfully |
| 75 | + |
| 76 | + consumer: |
| 77 | + extends: |
| 78 | + file: ../../script/docker-compose/base-compose.yml |
| 79 | + service: consumer |
| 80 | + ports: |
| 81 | + - 9092 |
| 82 | + depends_on: |
| 83 | + oap: |
| 84 | + condition: service_healthy |
| 85 | + provider: |
| 86 | + condition: service_healthy |
| 87 | + agent: |
| 88 | + condition: service_completed_successfully |
| 89 | + |
| 90 | +networks: |
| 91 | + e2e: |
| 92 | + |
| 93 | +volumes: |
| 94 | + sw_agent: |
0 commit comments