Photos

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)

Official min RAM
3 GB
Official rec. RAM
not stated
Min CPU
2 cores
Rec. CPU
not stated
Measured idle RAM
304 MB
Measured disk
2875 MB
Containers
2
Measured peak RAM (sample load)
828 MB

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

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