How much RAM does PhotoPrism need?
Self-hosted photo library with AI tagging, face recognition and a map, backed by MariaDB. Official requirements, sourced, plus our own measurements.
Last updated: 2026-11-11
Pinned version: PhotoPrism 261029-963b58c50 (photoprism/photoprism@sha256:9409cf8e5a6e, mariadb:12.3.3@sha256:d46e102fa8b9)
Our measurement
304 MB idle RAM · 2875 MB disk (images 2713 + data 162) · mariadb 161 MB, photoprism 144 MB
Official compose.yaml with the default services (PhotoPrism and MariaDB), no photos indexed. Both images are pinned by digest instead of latest. The only edits were the originals folder pointing at an empty local folder and a box-only networking workaround (default bridge network with a container link) because Docker on our test host has no working user-network DNS. Default settings and the default 'insecure' demo password, which you must change on a real server.
Method: Official compose file with both image tags replaced by exact digest (never latest), otherwise default settings, empty library. Measured after a 5-minute settle as the sum of docker stats MEM USAGE across both containers, 3 samples 20 s apart (median). Disk = pulled image sizes + the storage and database folders after first start.
Host: 8 vCPU Intel Xeon VM, 16 GB RAM, Debian 13 (kernel 6.12), Docker 27.3.1 + Compose 2.40.2
Version: PhotoPrism 261029-963b58c50 (photoprism/photoprism@sha256:9409cf8e5a6e, mariadb:12.3.3@sha256:d46e102fa8b9) · Compose: source · Date: 2026-11-11
With sample data
378 MB idle RAM · 3024 MB disk · photoprism 658 MB, mariadb 170 MB at the highest sample; 378 MB (photoprism 208 MB, mariadb 170 MB) after a 90-second settle
Peak RAM during processing: 828 MB
Sample: 1,000 computer-generated JPEG images (abstract shapes, 1600x1200 / 1200x1600 / 1920x1080, about 65 MB total, no EXIF/GPS, no real faces) copied into the originals folder and indexed with the built-in 'photoprism index' command, default settings, thumbnails and image classification on.
Indexing took about 1 minute 25 seconds on 8 vCPUs. Peak RAM was 828 MB while indexing. After indexing finished and a short settle, RAM dropped to 378 MB. Disk grew by 149 MB of thumbnails, cache and database (storage 141 MB plus database 170 MB vs 162 MB empty). Real phone photos are larger, contain faces and RAW files, and the docs say those can need extra memory and swap, so expect more than this sample.
Method: Same setup and host as the empty-install measurement. Peak RAM = highest of the docker stats samples (sum across both containers) polled back to back (about 2 s each) from the start of indexing until it finished, then settled RAM = two samples about a minute and a half later. Disk = pulled image sizes + storage and database folders (the 65 MB of originals not counted).
Version: PhotoPrism 261029-963b58c50 · Date: 2026-11-11
Compare
What the official docs say
- The official setup page says to host PhotoPrism on a server with at least 2 cores, 3 GB of physical memory and a 64-bit operating system. Beyond that minimum, the amount of RAM should match the number of CPU cores.
- The docs also recommend at least 4 GB of swap and say not to set a hard memory limit, because the indexer can temporarily need more memory for large files. RAW images and high-resolution panoramas may need more swap or RAM.
- RAW conversion and face recognition are disabled on systems with 1 GB or less of memory, per the setup page.
- The official Docker Compose example runs two containers by default: PhotoPrism and a MariaDB database (10.5.12+ is supported). If you remove MariaDB, SQLite files are created in the storage folder; the docs say SQLite is generally not a good choice for scalability and high performance.
- Local SSD storage is recommended for the database and cache files, and the originals and storage folders must be mounted to persistent volumes.
Fits a 4GB server?
yesMeasured 304 MB idle RAM with an empty default install (PhotoPrism plus MariaDB) and an 828 MB peak while indexing 1,000 generated photos. Plus 512 MB for the OS that fits 4 GB with room to spare. The official minimum is 3 GB, and the docs recommend 4 GB of swap for indexing large or RAW files, so real phone-photo libraries can need more than our sample did.
Sources
- PhotoPrism Setup and system requirements checked 2026-11-11
- PhotoPrism Docker Compose setup checked 2026-11-11
- PhotoPrism compose.yaml example checked 2026-11-11
- photoprism/photoprism image on Docker Hub checked 2026-11-11