update
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user