mirror of
https://github.com/photoprism/photoprism.git
synced 2026-07-17 16:49:04 +00:00
Setup: Update compose.yaml config examples #5123
Related Documentation: - https://github.com/photoprism/photoprism-docs/pull/203 - https://docs.photoprism.app/developer-guide/vision/caption-generation/ Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
3c84771c01
commit
2b9a3c9924
5 changed files with 22 additions and 27 deletions
|
|
@ -147,10 +147,9 @@ services:
|
|||
capabilities: [gpu]
|
||||
count: "all"
|
||||
|
||||
## Ollama Large Language Models
|
||||
## see https://ollama.com/search?c=vision
|
||||
## Before use, you must run the "ollama pull [name:version]"
|
||||
## command to download and install a model, for example:
|
||||
## Ollama AI Model Runner (optional)
|
||||
## Run "ollama pull [name]:[version]" to download a vision model
|
||||
## listed at <https://ollama.com/search?c=vision>, for example:
|
||||
## docker compose exec ollama ollama pull qwen2.5vl:3b
|
||||
ollama:
|
||||
image: ollama/ollama:latest
|
||||
|
|
@ -164,7 +163,7 @@ services:
|
|||
# ports:
|
||||
# - "11434:11434"
|
||||
environment:
|
||||
## Ollama server configuration
|
||||
## Ollama Configuration Options:
|
||||
OLLAMA_HOST: "0.0.0.0:11434"
|
||||
OLLAMA_MODELS: "/root/.ollama" # model storage path (see volumes section below)
|
||||
OLLAMA_MAX_QUEUE: "100" # maximum number of queued requests
|
||||
|
|
|
|||
13
compose.yaml
13
compose.yaml
|
|
@ -227,10 +227,9 @@ services:
|
|||
OLLAMA_ENABLED: "true"
|
||||
OLLAMA_HOST: "http://ollama:11434"
|
||||
|
||||
## Ollama Large Language Models
|
||||
## see https://ollama.com/search?c=vision
|
||||
## Before use, you must run the "ollama pull [name:version]"
|
||||
## command to download and install a model, for example:
|
||||
## Ollama AI Model Runner (optional)
|
||||
## Run "ollama pull [name]:[version]" to download a vision model
|
||||
## listed at <https://ollama.com/search?c=vision>, for example:
|
||||
## docker compose exec ollama ollama pull qwen2.5vl:3b
|
||||
ollama:
|
||||
image: ollama/ollama:latest
|
||||
|
|
@ -244,7 +243,7 @@ services:
|
|||
# ports:
|
||||
# - "11434:11434"
|
||||
environment:
|
||||
## Ollama server configuration
|
||||
## Ollama Configuration Options:
|
||||
OLLAMA_HOST: "0.0.0.0:11434"
|
||||
OLLAMA_MODELS: "/root/.ollama" # model storage path (see volumes section below)
|
||||
OLLAMA_MAX_QUEUE: "100" # maximum number of queued requests
|
||||
|
|
@ -261,12 +260,12 @@ services:
|
|||
# OLLAMA_SCHED_SPREAD: "1" # allows scheduling models across all GPUs.
|
||||
# OLLAMA_GPU_OVERHEAD: "0" # reserves a portion of VRAM per GPU (bytes)
|
||||
# OLLAMA_INTEL_GPU: "1" # enables experimental Intel GPU detection
|
||||
## NVIDIA GPU Hardware Acceleration (see https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html):
|
||||
## NVIDIA GPU Hardware Acceleration (optional):
|
||||
# NVIDIA_VISIBLE_DEVICES: "all"
|
||||
# NVIDIA_DRIVER_CAPABILITIES: "compute,utility"
|
||||
volumes:
|
||||
- "./storage/ollama:/root/.ollama"
|
||||
## NVIDIA GPU Hardware Acceleration (see https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html):
|
||||
## NVIDIA GPU Hardware Acceleration (optional):
|
||||
# deploy:
|
||||
# resources:
|
||||
# reservations:
|
||||
|
|
|
|||
|
|
@ -152,10 +152,9 @@ services:
|
|||
MARIADB_PASSWORD: "insecure"
|
||||
MARIADB_ROOT_PASSWORD: "insecure"
|
||||
|
||||
## Ollama Large Language Models
|
||||
## see https://ollama.com/search?c=vision
|
||||
## Before use, you must run the "ollama pull [name:version]"
|
||||
## command to download and install a model, for example:
|
||||
## Ollama AI Model Runner (optional)
|
||||
## Run "ollama pull [name]:[version]" to download a vision model
|
||||
## listed at <https://ollama.com/search?c=vision>, for example:
|
||||
## docker compose exec ollama ollama pull qwen2.5vl:3b
|
||||
ollama:
|
||||
image: ollama/ollama:latest
|
||||
|
|
@ -169,7 +168,7 @@ services:
|
|||
# ports:
|
||||
# - "11434:11434"
|
||||
environment:
|
||||
## Ollama server configuration
|
||||
## Ollama Configuration Options:
|
||||
OLLAMA_HOST: "0.0.0.0:11434"
|
||||
OLLAMA_MODELS: "/root/.ollama" # model storage path (see volumes section below)
|
||||
OLLAMA_MAX_QUEUE: "100" # maximum number of queued requests
|
||||
|
|
|
|||
|
|
@ -157,10 +157,9 @@ services:
|
|||
# MARIADB_REPLICATION_USER: ""
|
||||
# MARIADB_REPLICATION_PASSWORD: ""
|
||||
|
||||
## Ollama Large Language Models
|
||||
## see https://ollama.com/search?c=vision
|
||||
## Before use, you must run the "ollama pull [name:version]"
|
||||
## command to download and install a model, for example:
|
||||
## Ollama AI Model Runner (optional)
|
||||
## Run "ollama pull [name]:[version]" to download a vision model
|
||||
## listed at <https://ollama.com/search?c=vision>, for example:
|
||||
## docker compose exec ollama ollama pull qwen2.5vl:3b
|
||||
ollama:
|
||||
image: ollama/ollama:latest
|
||||
|
|
@ -174,7 +173,7 @@ services:
|
|||
# ports:
|
||||
# - "11434:11434"
|
||||
environment:
|
||||
## Ollama server configuration
|
||||
## Ollama Configuration Options:
|
||||
OLLAMA_HOST: "0.0.0.0:11434"
|
||||
OLLAMA_MODELS: "/root/.ollama" # model storage path (see volumes section below)
|
||||
OLLAMA_MAX_QUEUE: "100" # maximum number of queued requests
|
||||
|
|
|
|||
|
|
@ -157,10 +157,9 @@ services:
|
|||
# MARIADB_REPLICATION_USER: ""
|
||||
# MARIADB_REPLICATION_PASSWORD: ""
|
||||
|
||||
## Ollama Large Language Models
|
||||
## see https://ollama.com/search?c=vision
|
||||
## Before use, you must run the "ollama pull [name:version]"
|
||||
## command to download and install a model, for example:
|
||||
## Ollama AI Model Runner (optional)
|
||||
## Run "ollama pull [name]:[version]" to download a vision model
|
||||
## listed at <https://ollama.com/search?c=vision>, for example:
|
||||
## docker compose exec ollama ollama pull qwen2.5vl:3b
|
||||
ollama:
|
||||
image: ollama/ollama:latest
|
||||
|
|
@ -174,7 +173,7 @@ services:
|
|||
# ports:
|
||||
# - "11434:11434"
|
||||
environment:
|
||||
## Ollama server configuration
|
||||
## Ollama Configuration Options:
|
||||
OLLAMA_HOST: "0.0.0.0:11434"
|
||||
OLLAMA_MODELS: "/root/.ollama" # model storage path (see volumes section below)
|
||||
OLLAMA_MAX_QUEUE: "100" # maximum number of queued requests
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue