Signed-off-by: supriya-krishnamurthi <supriya.krishnamurthi@intel.com> Signed-off-by: Yogesh <yogeshpandey@intel.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: lvliang-intel <liang1.lv@intel.com> Co-authored-by: Yogesh <yogeshpandey@intel.com> Co-authored-by: Hoong Tee, Yeoh <hoong.tee.yeoh@intel.com> Co-authored-by: Yogesh Pandey <yogesh.pandey@intel.com>
61 lines
1.3 KiB
YAML
61 lines
1.3 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: ${HF_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
|
|
|
|
texttosql-service:
|
|
image: opea/texttosql:latest
|
|
container_name: texttosql-service
|
|
ports:
|
|
- "9090:8090"
|
|
environment:
|
|
- TGI_LLM_ENDPOINT=${TGI_LLM_ENDPOINT}
|
|
|
|
dbqna-xeon-react-ui-server:
|
|
image: opea/dbqna-react-ui:latest
|
|
container_name: dbqna-xeon-react-ui-server
|
|
depends_on:
|
|
- texttosql-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
|