We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54dc612 commit cbb0365Copy full SHA for cbb0365
2 files changed
docker-compose.yml
@@ -28,17 +28,15 @@ services:
28
build:
29
context: .
30
dockerfile: ollama.dockerfile
31
+ args:
32
+ - MODELS: "embeddinggemma mistral"
33
container_name: ollama
34
ports:
35
- "11434:11434"
36
restart: unless-stopped
37
# persistent for caching models across restarts and preloading
38
volumes:
39
- ollama_models:/root/.ollama
- environment:
- - MODELS=embeddinggemma
40
- # duration to keep model in memory
41
- - OLLAMA_KEEP_ALIVE=24h
42
networks:
43
- utopia
44
ollama.dockerfile
@@ -1,7 +1,7 @@
1
FROM ollama/ollama:0.12.7
2
3
# Preload specific models
4
-ENV MODELS="embeddinggemma"
+ARG MODELS="embeddinggemma"
5
ENV OLLAMA_KEEP_ALIVE=24h
6
7
# Pre-pull models at build time for Docker layer caching
0 commit comments