Ollama Init-Container für automatisches Modell-Pullen (embeddinggemma)
This commit is contained in:
parent
86f7178b2b
commit
1864370236
2 changed files with 51 additions and 11 deletions
|
|
@ -68,6 +68,27 @@ services:
|
|||
networks:
|
||||
- blinko-network
|
||||
|
||||
ollama-models:
|
||||
image: ollama/ollama:latest
|
||||
container_name: blinko-ollama-models
|
||||
entrypoint: ["/bin/sh", "-c"]
|
||||
command:
|
||||
- |
|
||||
echo "⏳ Warte auf Ollama API..."
|
||||
until curl -s http://ollama:11434/api/tags > /dev/null; do
|
||||
sleep 2
|
||||
done
|
||||
echo "✅ Ollama ready! Pulling embeddinggemma..."
|
||||
ollama pull embeddinggemma
|
||||
echo "🎉 Modell erfolgreich installiert!"
|
||||
volumes:
|
||||
- ollama_data:/root/.ollama
|
||||
depends_on:
|
||||
- ollama
|
||||
networks:
|
||||
- blinko-network
|
||||
restart: "no"
|
||||
|
||||
volumes:
|
||||
blinko_data:
|
||||
postgres_data:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue