This commit is contained in:
2025-11-12 11:42:02 +01:00
parent 94c89589af
commit 6773775f2a
2 changed files with 271 additions and 3 deletions

View File

@@ -50,15 +50,17 @@ services:
condition: service_healthy
networks:
- munich-news-network
env_file:
- backend/.env
entrypoint: /bin/sh
command: >
-c "
echo 'Waiting for Ollama service to be ready...' &&
sleep 5 &&
echo 'Pulling phi3:latest model via API...' &&
curl -X POST http://ollama:11434/api/pull -d '{\"name\":\"phi3:latest\"}' &&
echo 'Pulling model: ${OLLAMA_MODEL:-phi3:latest}' &&
curl -X POST http://ollama:11434/api/pull -d '{\"name\":\"${OLLAMA_MODEL:-phi3:latest}\"}' &&
echo '' &&
echo 'Model phi3:latest pull initiated!'
echo 'Model ${OLLAMA_MODEL:-phi3:latest} pull initiated!'
"
restart: "no"