From 5682b3df2ea1d943caa4b7852e83558d56d1c74c Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Thu, 16 Jul 2026 10:21:54 +0000 Subject: [PATCH] Docker: Allow Ollama and Vision env overrides via .env #5726 Make PHOTOPRISM_VISION_URI/KEY and OLLAMA_BASE_URL/OLLAMA_API_KEY configurable through .env so Ollama Cloud can be tested without editing compose.yaml directly. --- compose.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/compose.yaml b/compose.yaml index 582581fd0..c0a33880a 100644 --- a/compose.yaml +++ b/compose.yaml @@ -145,11 +145,11 @@ services: ## Run/install on first startup (options: update tensorflow https intel gpu davfs yt-dlp): PHOTOPRISM_INIT: "https" ## Computer Vision (https://docs.photoprism.app/getting-started/config-options/#computer-vision): - PHOTOPRISM_VISION_API: "true" # server: enables service API endpoints under /api/v1/vision (requires access token) - PHOTOPRISM_VISION_URI: "" # client: service URI, e.g. http://hostname/api/v1/vision (leave blank to disable) - PHOTOPRISM_VISION_KEY: "" # client: service access token (for authentication) - OLLAMA_BASE_URL: "http://ollama:11434" # use "https://ollama.com" for Ollama Cloud - OLLAMA_API_KEY: "" # API key required to access Ollama (optional) + PHOTOPRISM_VISION_API: "true" # server: enables service API endpoints under /api/v1/vision (requires access token) + PHOTOPRISM_VISION_URI: "${PHOTOPRISM_VISION_URI:-}" # client: service URI, e.g. http://hostname/api/v1/vision (leave blank to disable) + PHOTOPRISM_VISION_KEY: "${PHOTOPRISM_VISION_KEY:-}" # client: service access token (for authentication) + OLLAMA_BASE_URL: "${OLLAMA_BASE_URL:-http://ollama:11434}" # use "https://ollama.com" for Ollama Cloud + OLLAMA_API_KEY: "${OLLAMA_API_KEY:-}" # optional API key for Ollama Cloud ## Additional dependencies and tools: TF_CPP_MIN_LOG_LEVEL: 1 GOCACHE: "${WORKING_DIR:-/go/src/github.com/photoprism/photoprism}/.local/gocache"