Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

2.0 KB
Raw Blame
#
# 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.

# No fixed ports or named networks — Testcontainers auto-generates a unique
# project name and random host-port mappings, allowing multiple Doris clusters
# (e.g. 1.2.x and 3.0.x) to coexist in the same JVM lifecycle.

services:

  doris-fe:
    image: ${GRAVITINO_CI_DORIS_FE_IMAGE:-${GRAVITINO_CI_DORIS_DOCKER_IMAGE:-apache/gravitino-ci:doris-0.1.5}}
    hostname: doris-fe
    entrypoint: ["bash"]
    ports:
      - "8030"
      - "9030"
    volumes:
      - ./start-fe.sh:/opt/apache-doris/start-fe.sh
    command: ["start-fe.sh"]
    healthcheck:
      test: ["CMD", "bash", "-c", "curl -s http://localhost:8030/api/bootstrap | grep -q '\"msg\":\"success\"'"]
      interval: 10s
      timeout: 60s
      retries: 15
      start_period: 30s

  doris-be:
    image: ${GRAVITINO_CI_DORIS_BE_IMAGE:-${GRAVITINO_CI_DORIS_DOCKER_IMAGE:-apache/gravitino-ci:doris-0.1.5}}
    entrypoint: ["bash"]
    ports:
      - "8040"
      - "9050"
    volumes:
      - ./start-be.sh:/opt/apache-doris/start-be.sh
    command: ["start-be.sh"]
    depends_on:
      doris-fe:
        condition: service_healthy
    healthcheck:
      test: ["CMD", "bash", "-c", "curl -s http://localhost:8040/api/health | grep -q '\"status\": \"OK\"'"]
      interval: 10s
      timeout: 60s
      retries: 15
      start_period: 30s