-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor animation/image2image/text2sql docker compose (#1218)
* Refactor animation/image2image/text2sql docker compose 1. Unified docker compose format and reduce duplicate references 2. Use docker compose to test animation/image2image/text2sql Signed-off-by: Yao, Qing <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
293a588
commit 44fec2b
Showing
11 changed files
with
502 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
include: | ||
- ../../../third_parties/wav2lip/deployment/docker_compose/compose.yaml | ||
|
||
services: | ||
animation: | ||
image: ${REGISTRY:-opea}/animation:${TAG:-latest} | ||
container_name: animation-server | ||
ports: | ||
- ${ANIMATION_PORT:-9066}:9066 | ||
ipc: host | ||
environment: | ||
no_proxy: ${no_proxy} | ||
http_proxy: ${http_proxy} | ||
https_proxy: ${https_proxy} | ||
WAV2LIP_ENDPOINT: ${WAV2LIP_ENDPOINT} | ||
restart: unless-stopped | ||
depends_on: | ||
- wav2lip-server | ||
|
||
animation-gaudi: | ||
image: ${REGISTRY:-opea}/animation:${TAG:-latest} | ||
container_name: animation-gaudi-server | ||
ports: | ||
- ${ANIMATION_PORT:-9066}:9066 | ||
ipc: host | ||
environment: | ||
no_proxy: ${no_proxy} | ||
http_proxy: ${http_proxy} | ||
https_proxy: ${https_proxy} | ||
HABANA_VISIBLE_DEVICES: all | ||
OMPI_MCA_btl_vader_single_copy_mechanism: none | ||
WAV2LIP_ENDPOINT: ${WAV2LIP_ENDPOINT} | ||
runtime: habana | ||
cap_add: | ||
- SYS_NICE | ||
restart: unless-stopped | ||
depends_on: | ||
- wav2lip-gaudi-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
services: | ||
image2image: | ||
image: ${REGISTRY:-opea}/image2image:${TAG:-latest} | ||
container_name: image2image-server | ||
ports: | ||
- ${IMAGE2IMAGE_PORT:-9389}:9389 | ||
ipc: host | ||
environment: | ||
no_proxy: ${no_proxy} | ||
http_proxy: ${http_proxy} | ||
https_proxy: ${https_proxy} | ||
HF_TOKEN: ${HF_TOKEN} | ||
MODEL: ${MODEL} | ||
restart: unless-stopped | ||
|
||
image2image-gaudi: | ||
image: ${REGISTRY:-opea}/image2image-gaudi:${TAG:-latest} | ||
container_name: image2image-gaudi-server | ||
ports: | ||
- ${IMAGE2IMAGE_PORT:-9389}:9389 | ||
ipc: host | ||
environment: | ||
no_proxy: ${no_proxy} | ||
http_proxy: ${http_proxy} | ||
https_proxy: ${https_proxy} | ||
HF_TOKEN: ${HF_TOKEN} | ||
MODEL: ${MODEL} | ||
HABANA_VISIBLE_DEVICES: all | ||
OMPI_MCA_btl_vader_single_copy_mechanism: none | ||
runtime: habana | ||
cap_add: | ||
- SYS_NICE | ||
restart: unless-stopped | ||
|
||
networks: | ||
default: | ||
driver: bridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
include: | ||
- ../../../third_parties/tgi/deployment/docker_compose/compose.yaml | ||
|
||
services: | ||
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: | ||
- ../../src/chinook.sql:/docker-entrypoint-initdb.d/chinook.sql | ||
|
||
text2sql: | ||
image: opea/text2sql:${TAG:-latest} | ||
container_name: text2sql-server | ||
ports: | ||
- ${TEXT2SQL_PORT:-9090}:8080 | ||
environment: | ||
- TGI_LLM_ENDPOINT=${TGI_LLM_ENDPOINT} | ||
depends_on: | ||
- tgi-server | ||
- postgres | ||
|
||
text2sql-gaudi: | ||
image: opea/text2sql:${TAG:-latest} | ||
container_name: text2sql-gaudi-server | ||
ports: | ||
- ${TEXT2SQL_PORT:-9090}:8080 | ||
environment: | ||
- TGI_LLM_ENDPOINT=${TGI_LLM_ENDPOINT} | ||
depends_on: | ||
- tgi-gaudi-server | ||
- postgres | ||
networks: | ||
default: | ||
driver: bridge |
This file was deleted.
Oops, something went wrong.
61 changes: 61 additions & 0 deletions
61
comps/third_parties/wav2lip/deployment/docker_compose/compose.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
services: | ||
wav2lip-server: | ||
image: ${REGISTRY:-opea}/wav2lip:${TAG:-latest} | ||
container_name: wav2lip-server | ||
ports: | ||
- ${WAV2LIP_PORT:-7860}:${WAV2LIP_PORT:-7860} | ||
ipc: host | ||
volumes: | ||
- ${PWD}:/outputs | ||
environment: | ||
no_proxy: ${no_proxy} | ||
http_proxy: ${http_proxy} | ||
https_proxy: ${https_proxy} | ||
DEVICE: ${DEVICE} | ||
INFERENCE_MODE: ${INFERENCE_MODE} | ||
CHECKPOINT_PATH: ${CHECKPOINT_PATH} | ||
FACE: ${FACE} | ||
AUDIO: ${AUDIO} | ||
FACESIZE: ${FACESIZE} | ||
OUTFILE: ${OUTFILE} | ||
GFPGAN_MODEL_VERSION: ${GFPGAN_MODEL_VERSION} | ||
UPSCALE_FACTOR: ${UPSCALE_FACTOR} | ||
FPS: ${FPS} | ||
WAV2LIP_PORT: ${WAV2LIP_PORT:-7860} | ||
restart: unless-stopped | ||
wav2lip-gaudi-server: | ||
image: ${REGISTRY:-opea}/wav2lip-gaudi:${TAG:-latest} | ||
container_name: wav2lip-gaudi-server | ||
ports: | ||
- ${WAV2LIP_PORT:-7860}:${WAV2LIP_PORT:-7860} | ||
ipc: host | ||
volumes: | ||
- ${PWD}:/outputs | ||
environment: | ||
no_proxy: ${no_proxy} | ||
http_proxy: ${http_proxy} | ||
https_proxy: ${https_proxy} | ||
HABANA_VISIBLE_DEVICES: all | ||
OMPI_MCA_btl_vader_single_copy_mechanism: none | ||
DEVICE: ${DEVICE} | ||
INFERENCE_MODE: ${INFERENCE_MODE} | ||
CHECKPOINT_PATH: ${CHECKPOINT_PATH} | ||
FACE: ${FACE} | ||
AUDIO: ${AUDIO} | ||
FACESIZE: ${FACESIZE} | ||
OUTFILE: ${OUTFILE} | ||
GFPGAN_MODEL_VERSION: ${GFPGAN_MODEL_VERSION} | ||
UPSCALE_FACTOR: ${UPSCALE_FACTOR} | ||
FPS: ${FPS} | ||
WAV2LIP_PORT: ${WAV2LIP_PORT} | ||
runtime: habana | ||
cap_add: | ||
- SYS_NICE | ||
restart: unless-stopped | ||
|
||
networks: | ||
default: | ||
driver: bridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.