0.2.1 - docker sleep

This commit is contained in:
2026-03-12 14:57:04 +03:00
parent 5defeaefd4
commit 08ed52fc5c
+6 -6
View File
@@ -1,8 +1,6 @@
services:
ollama:
build:
context: .
dockerfile: docker/Dockerfile.ollama
image: ollama/ollama
container_name: ollama
volumes:
- ollama_data:/root/.ollama
@@ -14,9 +12,11 @@ services:
command:
- |
ollama serve &
sleep 5
until curl -sf http://localhost:11434/api/tags > /dev/null 2>&1; do sleep 2; done
ollama pull $${OLLAMA_MODEL:-gemma3n:e4b}
sleep 10
for i in 1 2 3 4 5 6 7 8 9 10; do
ollama pull $${OLLAMA_MODEL:-gemma3n:e4b} 2>/dev/null && break
sleep 5
done
wait
app: