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