blob: b99acf0d067cee0f507d694847bbd467e7962411 [file]
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
services:
# Two independent OAPs (not a cluster). Service names must stay bash-safe
# (oap_a / oap_b) so infra-e2e can export ${oap_a_host}/${oap_a_12800}.
# Do NOT set container_name: infra-e2e looks up {project}_oap_b_1 /
# {project}-oap_b-1; a fixed name breaks setup before verify runs.
oap_a:
extends:
file: ../../../base/docker-compose.base.yml
service: oap
ports:
- "12800"
oap_b:
extends:
file: ../../../base/docker-compose.base.yml
service: oap
ports:
- "12800"
provider:
extends:
file: ../../../base/docker-compose.base.yml
service: fastapi-provider
environment:
SW_AGENT_COLLECTOR_BACKEND_SERVICES: oap_a:11800,oap_b:11800
depends_on:
oap_a:
condition: service_healthy
oap_b:
condition: service_healthy
ports:
- "9090"
consumer:
extends:
file: ../../../base/docker-compose.base.yml
service: flask-consumer
environment:
SW_AGENT_COLLECTOR_BACKEND_SERVICES: oap_a:11800,oap_b:11800
depends_on:
provider:
condition: service_healthy
ports:
- "9090"
networks:
e2e: