Rename PhotoPrism example files and move resource limits to env file for project consistency.

This commit is contained in:
2025-10-30 07:40:31 -07:00
parent c2bb70ee23
commit 57b2a1c986
2 changed files with 20 additions and 4 deletions

View File

@@ -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.

View File

@@ -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