mindnet/docker/docker-compose.yml

24 lines
674 B
YAML
Raw Permalink Normal View History

2025-09-03 12:29:09 +02:00
services:
embed:
2025-09-03 12:51:13 +02:00
build:
context: ..
dockerfile: docker/embeddings.Dockerfile
2025-09-03 12:29:09 +02:00
container_name: mindnet-embed
2025-09-03 12:51:13 +02:00
restart: unless-stopped
2025-09-03 12:29:09 +02:00
working_dir: /srv
2025-09-03 14:16:12 +02:00
# Nur der HF-Cache wird als Volume gemountet (schreibbar),
# der App-Code ist im Image (COPY im Dockerfile) → keine Root-Dateien im Repo.
2025-09-03 12:29:09 +02:00
volumes:
2025-09-03 14:16:12 +02:00
- ./hf_cache:/srv/.hf_cache
2025-09-03 12:29:09 +02:00
ports:
- "8990:8990"
environment:
- TRANSFORMERS_CACHE=/srv/.hf_cache
2025-09-03 12:51:13 +02:00
- 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