|
| 1 | +# Copyright (C) 2025 Huawei Technologies Co., Ltd. |
| 2 | +# SPDX-License-Identifier: Apache-2.0 |
| 3 | + |
| 4 | +services: |
| 5 | + whisper-service: |
| 6 | + image: ${REGISTRY:-opea}/whisper:${TAG:-latest}-openeuler |
| 7 | + container_name: whisper-service |
| 8 | + ports: |
| 9 | + - ${WHISPER_SERVER_PORT:-7066}:7066 |
| 10 | + ipc: host |
| 11 | + environment: |
| 12 | + no_proxy: ${no_proxy} |
| 13 | + http_proxy: ${http_proxy} |
| 14 | + https_proxy: ${https_proxy} |
| 15 | + restart: unless-stopped |
| 16 | + speecht5-service: |
| 17 | + image: ${REGISTRY:-opea}/speecht5:${TAG:-latest}-openeuler |
| 18 | + container_name: speecht5-service |
| 19 | + ports: |
| 20 | + - ${SPEECHT5_SERVER_PORT:-7055}:7055 |
| 21 | + ipc: host |
| 22 | + environment: |
| 23 | + no_proxy: ${no_proxy} |
| 24 | + http_proxy: ${http_proxy} |
| 25 | + https_proxy: ${https_proxy} |
| 26 | + restart: unless-stopped |
| 27 | + vllm-service: |
| 28 | + image: openeuler/vllm-cpu:0.10.1-oe2403lts |
| 29 | + container_name: vllm-service |
| 30 | + ports: |
| 31 | + - ${LLM_SERVER_PORT:-3006}:80 |
| 32 | + volumes: |
| 33 | + - "${MODEL_CACHE:-./data}:/root/.cache/huggingface/hub" |
| 34 | + shm_size: 128g |
| 35 | + environment: |
| 36 | + no_proxy: ${no_proxy} |
| 37 | + http_proxy: ${http_proxy} |
| 38 | + https_proxy: ${https_proxy} |
| 39 | + HF_TOKEN: ${HF_TOKEN} |
| 40 | + LLM_MODEL_ID: ${LLM_MODEL_ID} |
| 41 | + VLLM_TORCH_PROFILER_DIR: "/mnt" |
| 42 | + LLM_SERVER_PORT: ${LLM_SERVER_PORT} |
| 43 | + VLLM_CPU_OMP_THREADS_BIND: all |
| 44 | + VLLM_CPU_KVCACHE_SPACE: 30 |
| 45 | + healthcheck: |
| 46 | + test: ["CMD-SHELL", "curl -f http://$host_ip:${LLM_SERVER_PORT}/health || exit 1"] |
| 47 | + interval: 10s |
| 48 | + timeout: 10s |
| 49 | + retries: 100 |
| 50 | + command: --model ${LLM_MODEL_ID} --host 0.0.0.0 --port 80 |
| 51 | + audioqna-xeon-backend-server: |
| 52 | + image: ${REGISTRY:-opea}/audioqna:${TAG:-latest}-openeuler |
| 53 | + container_name: audioqna-xeon-backend-server |
| 54 | + depends_on: |
| 55 | + - whisper-service |
| 56 | + - vllm-service |
| 57 | + - speecht5-service |
| 58 | + ports: |
| 59 | + - "3008:8888" |
| 60 | + environment: |
| 61 | + - no_proxy=${no_proxy} |
| 62 | + - https_proxy=${https_proxy} |
| 63 | + - http_proxy=${http_proxy} |
| 64 | + - MEGA_SERVICE_HOST_IP=${MEGA_SERVICE_HOST_IP} |
| 65 | + - WHISPER_SERVER_HOST_IP=${WHISPER_SERVER_HOST_IP} |
| 66 | + - WHISPER_SERVER_PORT=${WHISPER_SERVER_PORT} |
| 67 | + - LLM_SERVER_HOST_IP=${LLM_SERVER_HOST_IP} |
| 68 | + - LLM_SERVER_PORT=${LLM_SERVER_PORT} |
| 69 | + - LLM_MODEL_ID=${LLM_MODEL_ID} |
| 70 | + - SPEECHT5_SERVER_HOST_IP=${SPEECHT5_SERVER_HOST_IP} |
| 71 | + - SPEECHT5_SERVER_PORT=${SPEECHT5_SERVER_PORT} |
| 72 | + ipc: host |
| 73 | + restart: always |
| 74 | + audioqna-xeon-ui-server: |
| 75 | + image: ${REGISTRY:-opea}/audioqna-ui:${TAG:-latest}-openeuler |
| 76 | + container_name: audioqna-xeon-ui-server |
| 77 | + depends_on: |
| 78 | + - audioqna-xeon-backend-server |
| 79 | + ports: |
| 80 | + - "5173:5173" |
| 81 | + environment: |
| 82 | + - no_proxy=${no_proxy} |
| 83 | + - https_proxy=${https_proxy} |
| 84 | + - http_proxy=${http_proxy} |
| 85 | + - CHAT_URL=${BACKEND_SERVICE_ENDPOINT} |
| 86 | + ipc: host |
| 87 | + restart: always |
| 88 | + |
| 89 | +networks: |
| 90 | + default: |
| 91 | + driver: bridge |
0 commit comments