Signed-off-by: Yao, Qing <qing.yao@intel.com> Signed-off-by: chensuyue <suyue.chen@intel.com>
62 lines
1.5 KiB
YAML
62 lines
1.5 KiB
YAML
# Copyright (C) 2024 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
version: "3.8"
|
|
|
|
services:
|
|
tgi-service:
|
|
image: ghcr.io/huggingface/text-generation-inference:2.1.0
|
|
container_name: tgi-service
|
|
ports:
|
|
- "8008:80"
|
|
volumes:
|
|
- "./data:/data"
|
|
environment:
|
|
no_proxy: ${no_proxy}
|
|
http_proxy: ${http_proxy}
|
|
https_proxy: ${https_proxy}
|
|
HF_TOKEN: ${HUGGINGFACEHUB_API_TOKEN}
|
|
HUGGINGFACEHUB_API_TOKEN: ${HUGGINGFACEHUB_API_TOKEN}
|
|
shm_size: 1g
|
|
command: --model-id ${LLM_MODEL_ID}
|
|
|
|
postgres:
|
|
image: postgres:latest
|
|
container_name: postgres-container
|
|
restart: always
|
|
environment:
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
|
- POSTGRES_DB=${POSTGRES_DB}
|
|
ports:
|
|
- '5442:5432'
|
|
volumes:
|
|
- ./chinook.sql:/docker-entrypoint-initdb.d/chinook.sql
|
|
|
|
text2sql-service:
|
|
image: ${REGISTRY:-opea}/text2sql:${TAG:-latest}
|
|
container_name: text2sql-service
|
|
ports:
|
|
- "9090:8080"
|
|
environment:
|
|
- TGI_LLM_ENDPOINT=${TGI_LLM_ENDPOINT}
|
|
|
|
dbqna-xeon-react-ui-server:
|
|
image: ${REGISTRY:-opea}/text2sql-react-ui:${TAG:-latest}
|
|
container_name: dbqna-xeon-react-ui-server
|
|
depends_on:
|
|
- text2sql-service
|
|
ports:
|
|
- "5174:80"
|
|
environment:
|
|
- no_proxy=${no_proxy}
|
|
- https_proxy=${https_proxy}
|
|
- http_proxy=${http_proxy}
|
|
ipc: host
|
|
restart: always
|
|
|
|
|
|
networks:
|
|
default:
|
|
driver: bridge
|