chore: update format
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Ollama Version
|
||||
OLLAMA_VERSION=0.12.0
|
||||
OLLAMA_VERSION=0.12.10
|
||||
|
||||
# Port to bind to on the host machine
|
||||
OLLAMA_PORT_OVERRIDE=11434
|
||||
|
||||
@@ -9,7 +9,7 @@ x-defaults: &defaults
|
||||
services:
|
||||
ollama:
|
||||
<<: *defaults
|
||||
image: ${GLOBAL_REGISTRY:-}ollama/ollama:${OLLAMA_VERSION:-0.12.6}
|
||||
image: ${GLOBAL_REGISTRY:-}ollama/ollama:${OLLAMA_VERSION:-0.12.10}
|
||||
ports:
|
||||
- "${OLLAMA_PORT_OVERRIDE:-11434}:11434"
|
||||
volumes:
|
||||
@@ -17,24 +17,24 @@ services:
|
||||
environment:
|
||||
- TZ=${TZ:-UTC}
|
||||
ipc: host
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: '8.0'
|
||||
memory: 4G
|
||||
reservations:
|
||||
cpus: '2.0'
|
||||
memory: 2G
|
||||
devices:
|
||||
- driver: nvidia
|
||||
device_ids: [ '0' ]
|
||||
capabilities: [ gpu ]
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:11434/"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: ${OLLAMA_CPU_LIMIT:-8.0}
|
||||
memory: ${OLLAMA_MEMORY_LIMIT:-16G}
|
||||
reservations:
|
||||
cpus: ${OLLAMA_CPU_RESERVATION:-2.0}
|
||||
memory: ${OLLAMA_MEMORY_RESERVATION:-4G}
|
||||
devices:
|
||||
- driver: nvidia
|
||||
device_ids: [ '0' ]
|
||||
capabilities: [ gpu ]
|
||||
|
||||
volumes:
|
||||
ollama_models:
|
||||
|
||||
Reference in New Issue
Block a user