From 57b2a1c9865dd616d5fc4a17650f1ad402750da4 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Thu, 30 Oct 2025 07:40:31 -0700 Subject: [PATCH] Rename PhotoPrism example files and move resource limits to env file for project consistency. --- ...e.standard.yml => docker-compose.example.yml} | 8 ++++---- Config/PhotoPrism/{env.standard => example.env} | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) rename Config/PhotoPrism/{docker-compose.standard.yml => docker-compose.example.yml} (99%) rename Config/PhotoPrism/{env.standard => example.env} (91%) diff --git a/Config/PhotoPrism/docker-compose.standard.yml b/Config/PhotoPrism/docker-compose.example.yml similarity index 99% rename from Config/PhotoPrism/docker-compose.standard.yml rename to Config/PhotoPrism/docker-compose.example.yml index f5c2dc6..eb98828 100644 --- a/Config/PhotoPrism/docker-compose.standard.yml +++ b/Config/PhotoPrism/docker-compose.example.yml @@ -121,8 +121,8 @@ services: mode: global resources: limits: - cpus: '2.00' - memory: 2G + cpus: $CPU + memory: $MEM ## Database Server (recommended) ## see https://docs.photoprism.app/getting-started/faq/#should-i-use-sqlite-mariadb-or-mysql @@ -152,8 +152,8 @@ services: mode: global resources: limits: - cpus: '0.50' - memory: 512M + cpus: $CPU_DB + memory: $MEM_DB # Configured but not using this, would prefer to update manually, and the # volume needs also seem sort of odd. Do not want it to harm other projects. diff --git a/Config/PhotoPrism/env.standard b/Config/PhotoPrism/example.env similarity index 91% rename from Config/PhotoPrism/env.standard rename to Config/PhotoPrism/example.env index b8ef176..b3c004a 100644 --- a/Config/PhotoPrism/env.standard +++ b/Config/PhotoPrism/example.env @@ -1,3 +1,10 @@ +# This file will need to be copied as `.env`. + +## +# Docker +## + +COMPOSE_BAKE=true ## # PhotoPrism @@ -38,3 +45,12 @@ MARIADB_DATABASE = "photoprism" MARIADB_USER = "photoprism" MARIADB_PASSWORD = "PleaseChangeMe" MARIADB_ROOT_PASSWORD = "PleaseChangeMe" + +## +# Performance +## + +CPU=2.00 +MEM=2.00G +CPU_DB=0.50 +MEM_DB=0.50G