Skip to content

Commit

Permalink
Fix docker compose health check issue (#1133)
Browse files Browse the repository at this point in the history
Signed-off-by: lvliang-intel <liang1.lv@intel.com>
Co-authored-by: Abolfazl Shahbazi <12436063+ashahba@users.noreply.github.com>
  • Loading branch information
lvliang-intel and ashahba authored Jan 13, 2025
1 parent feef30b commit fe24dec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions comps/embeddings/deployment/docker_compose/compose_tei.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ services:
tei-embedding-service:
image: ghcr.io/huggingface/text-embeddings-inference:cpu-1.5
container_name: tei-embedding-server
entrypoint: /bin/sh -c "apt-get update && apt-get install -y curl && text-embeddings-router --json-output --model-id ${EMBEDDING_MODEL_ID} --auto-truncate"
ports:
- "6006:80"
volumes:
Expand All @@ -16,9 +17,9 @@ services:
no_proxy: ${no_proxy}
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
command: --model-id ${EMBEDDING_MODEL_ID} --auto-truncate
host_ip: ${host_ip}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6006/health"]
test: ["CMD", "curl", "-f", "http://${host_ip}:6006/health"]
interval: 10s
timeout: 6s
retries: 18
Expand Down

0 comments on commit fe24dec

Please sign in to comment.