This commit is contained in:
2025-11-12 11:55:53 +01:00
parent 6773775f2a
commit d59372d1d6
8 changed files with 694 additions and 20 deletions

View File

@@ -52,17 +52,10 @@ services:
- munich-news-network
env_file:
- backend/.env
entrypoint: /bin/sh
command: >
-c "
echo 'Waiting for Ollama service to be ready...' &&
sleep 5 &&
echo 'Pulling model: ${OLLAMA_MODEL:-phi3:latest}' &&
curl -X POST http://ollama:11434/api/pull -d '{\"name\":\"${OLLAMA_MODEL:-phi3:latest}\"}' &&
echo '' &&
echo 'Model ${OLLAMA_MODEL:-phi3:latest} pull initiated!'
"
restart: "no"
volumes:
- ./scripts/setup-ollama-model.sh:/setup-ollama-model.sh:ro
command: sh /setup-ollama-model.sh
restart: on-failure
# MongoDB Database (Internal only - not exposed to host)
mongodb: