docker/docker-compose.yml aktualisiert
All checks were successful
Deploy mindnet to llm-node / deploy (push) Successful in 3s
All checks were successful
Deploy mindnet to llm-node / deploy (push) Successful in 3s
This commit is contained in:
parent
86600b0480
commit
d4e333325e
|
|
@ -1,13 +1,22 @@
|
||||||
version: "3.9"
|
|
||||||
services:
|
services:
|
||||||
embed:
|
embed:
|
||||||
image: python:3.11-slim
|
build:
|
||||||
|
context: ..
|
||||||
|
dockerfile: docker/embeddings.Dockerfile
|
||||||
container_name: mindnet-embed
|
container_name: mindnet-embed
|
||||||
|
restart: unless-stopped
|
||||||
working_dir: /srv
|
working_dir: /srv
|
||||||
volumes:
|
volumes:
|
||||||
- ../app:/srv # mappt app/ ins Container-Arbeitsverzeichnis
|
- ../app:/srv # bind mount, damit du embed_server.py leicht ändern kannst
|
||||||
command: bash -lc "pip install --no-cache-dir fastapi==0.111.0 uvicorn==0.30.1 sentence-transformers==3.0.1 && uvicorn embed_server:app --host 0.0.0.0 --port 8990"
|
- ./hf_cache:/srv/.hf_cache # persistenter HF-Cache
|
||||||
ports:
|
ports:
|
||||||
- "8990:8990"
|
- "8990:8990"
|
||||||
environment:
|
environment:
|
||||||
- TRANSFORMERS_CACHE=/srv/.hf_cache
|
- TRANSFORMERS_CACHE=/srv/.hf_cache
|
||||||
|
- HF_HUB_DISABLE_TELEMETRY=1
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:8990/health || exit 1"]
|
||||||
|
interval: 20s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 10
|
||||||
|
start_period: 40s
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user