From 3f519b7a87b935bd62e416dc2c429fd8bfc99144 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Fri, 12 Sep 2025 11:17:41 +0200 Subject: [PATCH] Docker: Update compose.yaml files for development environment Signed-off-by: Michael Mayer --- compose.intel.yaml | 4 +++- compose.nvidia.yaml | 4 +++- compose.postgres.yaml | 4 +++- compose.yaml | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/compose.intel.yaml b/compose.intel.yaml index 8782223e6..52f364354 100644 --- a/compose.intel.yaml +++ b/compose.intel.yaml @@ -116,13 +116,15 @@ services: PHOTOPRISM_THUMB_LIBRARY: "auto" # image processing library to be used for generating thumbnails (auto, imaging, vips) PHOTOPRISM_THUMB_FILTER: "auto" # downscaling filter (imaging best to worst: blackman, lanczos, cubic, linear, nearest) PHOTOPRISM_THUMB_UNCACHED: "true" # enables on-demand thumbnail rendering (high memory and cpu usage) - TF_CPP_MIN_LOG_LEVEL: 1 # show TensorFlow log messages for development ## Intel Quick Sync Video (QSV) (https://docs.photoprism.app/getting-started/advanced/transcoding/#intel-quick-sync): PHOTOPRISM_FFMPEG_ENCODER: "intel" # H.264/AVC encoder (software, intel, nvidia, apple, raspberry, or vaapi) PHOTOPRISM_FFMPEG_SIZE: "1920" # video size limit in pixels (720-7680) (default: 3840) # PHOTOPRISM_FFMPEG_BITRATE: "64" # video bitrate limit in Mbps (default: 60) ## Run/install on first startup (options: update tensorflow https intel gpu davfs yt-dlp): PHOTOPRISM_INIT: "https intel tensorflow" + ## External dependencies and tools: + TF_CPP_MIN_LOG_LEVEL: 1 + CODEX_HOME: "/go/src/github.com/photoprism/photoprism/.codex" ## Share hardware devices with FFmpeg for hardware video transcoding: devices: - "/dev/dri:/dev/dri" diff --git a/compose.nvidia.yaml b/compose.nvidia.yaml index b017f28d1..9484eea32 100644 --- a/compose.nvidia.yaml +++ b/compose.nvidia.yaml @@ -119,7 +119,6 @@ services: PHOTOPRISM_THUMB_LIBRARY: "auto" # image processing library to be used for generating thumbnails (auto, imaging, vips) PHOTOPRISM_THUMB_FILTER: "auto" # downscaling filter (imaging best to worst: blackman, lanczos, cubic, linear, nearest) PHOTOPRISM_THUMB_UNCACHED: "true" # enables on-demand thumbnail rendering (high memory and cpu usage) - TF_CPP_MIN_LOG_LEVEL: 1 # show TensorFlow log messages for development ## Run/install on first startup (options: update tensorflow https intel gpu davfs yt-dlp): PHOTOPRISM_INIT: "https tensorflow-gpu" ## Computer Vision API (https://docs.photoprism.app/getting-started/config-options/#computer-vision): @@ -132,6 +131,9 @@ services: PHOTOPRISM_FFMPEG_ENCODER: "nvidia" # H.264/AVC encoder (software, intel, nvidia, apple, raspberry, or vaapi) PHOTOPRISM_FFMPEG_SIZE: "1920" # video size limit in pixels (720-7680) (default: 3840) PHOTOPRISM_FFMPEG_BITRATE: "64" # video bitrate limit in Mbps (default: 60) + ## External dependencies and tools: + TF_CPP_MIN_LOG_LEVEL: 1 + CODEX_HOME: "/go/src/github.com/photoprism/photoprism/.codex" ## Shared devices for video hardware transcoding (optional): # devices: # - "/dev/dri:/dev/dri" # Required Intel QSV or VAAPI hardware transcoding diff --git a/compose.postgres.yaml b/compose.postgres.yaml index a28bb690c..4af8e951d 100644 --- a/compose.postgres.yaml +++ b/compose.postgres.yaml @@ -66,9 +66,11 @@ services: # PHOTOPRISM_THUMB_SIZE: 4096 # Retina 4K, DCI 4K (requires more storage); 7680 for 8K Ultra HD PHOTOPRISM_THUMB_SIZE_UNCACHED: 7680 # on-demand rendering size limit (default 7680, min 720, max 7680) PHOTOPRISM_JPEG_SIZE: 7680 # size limit for converted image files in pixels (720-30000) - TF_CPP_MIN_LOG_LEVEL: 1 # show TensorFlow log messages for development ## Run/install on first startup (options: update tensorflow https intel gpu davfs yt-dlp): PHOTOPRISM_INIT: "https" + ## External dependencies and tools: + TF_CPP_MIN_LOG_LEVEL: 1 + CODEX_HOME: "/go/src/github.com/photoprism/photoprism/.codex" ## PostgreSQL Database Server ## Docs: https://www.postgresql.org/docs/ postgres: diff --git a/compose.yaml b/compose.yaml index 0d25e5e29..9915b146b 100644 --- a/compose.yaml +++ b/compose.yaml @@ -124,7 +124,6 @@ services: PHOTOPRISM_THUMB_LIBRARY: "auto" # image processing library to be used for generating thumbnails (auto, imaging, vips) PHOTOPRISM_THUMB_FILTER: "auto" # downscaling filter (imaging best to worst: blackman, lanczos, cubic, linear, nearest) PHOTOPRISM_THUMB_UNCACHED: "true" # enables on-demand thumbnail rendering (high memory and cpu usage) - TF_CPP_MIN_LOG_LEVEL: 1 # show TensorFlow log messages for development ## Video Transcoding (https://docs.photoprism.app/getting-started/advanced/transcoding/): # PHOTOPRISM_FFMPEG_ENCODER: "software" # H.264/AVC encoder (software, intel, nvidia, apple, raspberry, or vaapi) # LIBVA_DRIVER_NAME: "i965" # For Intel architectures Haswell and older which do not support QSV yet but use VAAPI instead @@ -136,6 +135,9 @@ services: 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) + ## External dependencies and tools: + TF_CPP_MIN_LOG_LEVEL: 1 + CODEX_HOME: "/go/src/github.com/photoprism/photoprism/.codex" ## Shared devices for video hardware transcoding (optional): # devices: # - "/dev/dri:/dev/dri" # Required Intel QSV or VAAPI hardware transcoding