The best self-hosted Google Photos alternative in 2026 is Immich, an open-source photo and video management platform that replicates Google Photos’ core features, including mobile auto-backup, facial recognition, map view, memories, and shared albums, while keeping every file on your own server, as outlined in the Docker documentation. If you want Google Photos functionality without Google’s data access, storage limits, or subscription fees, Immich running on Docker gives you exactly that.
Google Photos eliminated free unlimited storage in 2021, and in 2026 the 15GB free tier fills up faster than ever with 48MP smartphone cameras producing 12MB files per photo. Google One plans cost $2 to $10 per month for 100GB to 2TB, which adds up to $120 per year at the popular 200GB tier. A self-hosted alternative costs $0 per month after the initial hardware investment (often a device you already own), gives you unlimited storage limited only by your hard drive capacity, and keeps your photos private by design. Here is how to choose and set up the right platform.
Immich vs PhotoPrism: Which One to Choose
Immich and PhotoPrism are the two leading self-hosted photo management platforms, but they serve different use cases and have different maturity levels. The comparison below covers every meaningful difference.
| Feature | Immich | PhotoPrism |
|---|---|---|
| Mobile auto-backup | Yes (iOS + Android app) | No native app (use Photosync) |
| Facial recognition | Yes (on-device ML) | Yes (TensorFlow) |
| Map view | Yes | Yes |
| Shared albums | Yes (with link sharing) | Yes |
| Multi-user support | Yes (full multi-user) | Limited (single admin + links) |
| Video support | Full (transcoding included) | Basic playback |
| RAW file support | Yes (HEIF, RAW, DNG) | Yes (extensive format support) |
| Docker deployment | Yes (Docker Compose) | Yes (Docker Compose) |
| Hardware requirements | 4GB+ RAM recommended | 2GB+ RAM minimum |
| Machine learning | CLIP + face detection | TensorFlow classification |
| Maturity | Rapid development (since 2022) | Stable (since 2018) |
| License | AGPL-3.0 (fully open source) | AGPL-3.0 (some features require paid license) |
| Best for | Google Photos replacement | Photo browsing and organization |
Choose Immich if you want the closest Google Photos experience: automatic phone backup, timeline view, memories, facial recognition, map integration, shared albums with family members, and multi-user accounts where each family member has their own library. Immich is the only self-hosted platform with native mobile apps that handle background photo upload identically to Google Photos.
Choose PhotoPrism if you primarily want a photo browsing and organization tool for an existing photo collection. PhotoPrism excels at importing, categorizing, and searching through large photo libraries using AI-powered classification. It runs on lower-powered hardware (including Raspberry Pi 4) and has a more stable codebase since it has been in development since 2018.
Hardware Requirements for Self-Hosted Photos
Your photo server needs enough processing power for machine learning tasks (facial recognition, image classification) and enough storage for your photo library. The good news: you likely already own hardware that works.
A Raspberry Pi 5 (8GB model, $80) handles Immich for personal use with libraries up to 50,000 photos. Machine learning tasks run slower than on x86 hardware, but background processing means you do not wait for results. Attach a USB 3.0 external drive for storage.
An old laptop or mini PC with an Intel i5 or equivalent (any generation from 6th onward) and 8GB+ RAM runs Immich smoothly for family use with libraries of 100,000+ photos. Intel Quick Sync provides hardware-accelerated video transcoding that dramatically speeds up video processing.
A NAS device (Synology DS224+, QNAP TS-264, or similar) combines storage and compute in one device designed for 24/7 operation. Both Synology and QNAP support Docker natively, letting you run Immich or PhotoPrism directly on the NAS alongside your photo storage. This is the cleanest setup because storage and application live on the same device with redundant drives (RAID 1) protecting against data loss.
Storage math: the average smartphone photo at 12MP takes 3 to 5 MB. A family of four taking 5,000 photos per year needs approximately 20 to 25 GB annually. At that rate, a 4TB drive holds 160+ years of photos with room for videos. Video files are significantly larger (1 minute of 4K video uses approximately 350 MB), so heavy video users should budget 2 to 4 TB minimum.
Installing Immich With Docker Compose
Immich’s recommended installation method uses Docker Compose, which deploys all required services (web server, database, machine learning, Redis cache) with a single command. The entire installation takes 10 to 15 minutes on a prepared Docker host.
Prerequisites: a Linux, macOS, or Windows server with Docker and Docker Compose installed. If you have not set up Docker yet, follow the official Docker installation guide for your operating system, or use our Docker Compose beginners guide linked above.
Download Immich’s official Docker Compose file and environment configuration from Immich’s GitHub repository. The .env file contains configuration variables for database passwords, upload locations, and machine learning settings. At minimum, configure the UPLOAD_LOCATION variable to point to your photo storage drive and set secure database passwords.
Run the deployment with the terminal command for Docker Compose to bring up all services in detached mode. Docker pulls the required container images (approximately 3 to 4 GB total), creates the database, and starts all services. After 2 to 5 minutes (depending on your internet speed and hardware), Immich is accessible at your server’s IP address on port 2283.
Create your admin account through the web interface, then install the Immich mobile app on your iPhone or Android device. Log in with your server’s IP address (or domain name if you have set up remote access via Tailscale) and enable automatic background photo backup. The app uploads new photos whenever your phone connects to WiFi, identical to how Google Photos works.
Migrating Your Existing Google Photos Library
Google Takeout exports your entire Google Photos library as a downloadable archive. Go to takeout.google.com, select only Google Photos, choose your export format (ZIP files, 50GB maximum size per file), and request the export. Google prepares the archive and emails you download links within hours to days depending on library size.
The exported archive contains your photos plus JSON sidecar files with metadata (dates, descriptions, GPS coordinates). Immich includes a Google Takeout import tool that reads these JSON files and applies the correct metadata to each imported photo. Without this tool, photos lose their original dates and GPS data because Google strips EXIF metadata from the image files in the Takeout export.
Import speed depends on your library size and server hardware. Expect approximately 1,000 photos per hour on a Raspberry Pi 5 and 5,000 to 10,000 photos per hour on an Intel i5 system. The import runs in the background, so you can use Immich normally while it processes. Machine learning tasks (face detection, CLIP tagging, object classification) run as a separate background queue after import completes.
Setting Up Remote Access to Your Photo Server
A photo backup server is only useful if your phone can reach it from anywhere, not just your home WiFi. There are three approaches to remote access, each with different security and complexity tradeoffs.
Tailscale (recommended, free for personal use) creates an encrypted mesh VPN that connects your phone to your home server from anywhere in the world. Install Tailscale on your server and your phone. Your server gets a stable Tailscale IP address that your phone can reach from any network. No port forwarding, no firewall changes, no domain name required. Immich’s mobile app connects to the Tailscale IP address as if you were on your home WiFi.
Cloudflare Tunnel (free) creates a secure tunnel from your server to Cloudflare’s network, exposing Immich on a custom domain (e.g., photos.yourdomain.com) with HTTPS and DDoS protection. Requires owning a domain name ($10 to $15/year). More complex to set up than Tailscale but provides a public URL that works without installing anything on your phone.
Reverse proxy with port forwarding (free, least secure) exposes your server directly to the internet through your router’s port forwarding. Requires a reverse proxy (Nginx, Caddy) for HTTPS and a dynamic DNS service for a stable domain. This approach works but exposes your home network to the internet, which carries security risks that Tailscale and Cloudflare Tunnel eliminate by design.
Backup Strategy for Self-Hosted Photos
Self-hosting means you are responsible for data protection. A hard drive failure without backups means permanent photo loss. Follow the 3-2-1 backup rule: three copies of your data, on two different media types, with one copy offsite.
Copy 1: your Immich server’s primary storage (NAS or local drive). Copy 2: an automated backup to a second local drive using rsync, Synology Hyper Backup, or a similar tool that runs nightly. Copy 3: an encrypted offsite backup to a cloud storage provider like Backblaze B2 ($6/TB/month) or an external drive stored at a different physical location.
Immich stores photos as regular files in the filesystem, making backups simple. Any file-level backup tool works. The database (PostgreSQL) requires a separate database dump, which Immich’s documentation covers with a one-command backup procedure. Schedule both file backups and database dumps to run nightly via cron.
PhotoPrism as an Alternative Setup
PhotoPrism runs on lighter hardware and offers a more mature, stable experience for users who prioritize browsing and organizing an existing photo collection over the Google Photos-style auto-backup workflow.
Deploy PhotoPrism with Docker Compose similarly to Immich. PhotoPrism’s stack is simpler (web server, database, optional machine learning worker) and requires less RAM. A Raspberry Pi 4 with 4GB RAM runs PhotoPrism adequately for libraries up to 100,000 photos.
PhotoPrism’s AI classification uses TensorFlow to identify objects, scenes, colors, and faces in your photos. The search function lets you find photos by typing natural language queries like “sunset at beach” or “dog in snow.” This intelligent search is PhotoPrism’s standout feature and works remarkably well for organizing large, unstructured photo collections.
The main limitation for Airbnb-style family use: PhotoPrism lacks native mobile apps for automatic backup. You need a third-party app like PhotoSync ($4, iOS and Android) to handle automatic uploads from your phone to PhotoPrism’s import folder. This works reliably but adds a step that Immich eliminates with its built-in mobile apps.
Is Immich a good replacement for Google Photos?
Immich is the closest self-hosted replacement for Google Photos in 2026. It replicates auto-backup from mobile devices, facial recognition, map view, memories timeline, shared albums, and multi-user accounts. The mobile apps for iOS and Android handle background upload identically to Google Photos. The main difference is that you host it yourself.
How much does it cost to self-host photos?
The software (Immich, PhotoPrism) is free and open-source. Hardware costs range from $0 (repurposed old laptop) to $80 (Raspberry Pi 5) to $300-500 (NAS device with drives). Electricity for a Raspberry Pi costs approximately $5 per year. A NAS costs $15 to $30 annually. There are no monthly subscription fees.
Can Immich handle 100,000+ photos?
Yes. Immich handles libraries of 100,000+ photos on hardware with 8GB+ RAM and a modern processor (Intel i5 6th gen or newer). The web interface remains responsive, and machine learning tasks process in the background without affecting browsing performance. Libraries over 200,000 photos benefit from SSD storage for the database.
Is self-hosted photo storage safe from data loss?
Self-hosted storage is exactly as safe as your backup strategy. With the 3-2-1 rule (three copies, two media types, one offsite), your photos are safer than on Google Photos because you control every copy. Without backups, a single drive failure means permanent loss. Automated nightly backups to a second drive plus monthly offsite copies provide robust protection.
Can multiple family members use one Immich server?
Yes. Immich supports full multi-user accounts where each family member has their own library, their own mobile app login, and their own facial recognition data. Users can share albums with each other. An admin account manages storage quotas and user permissions. Each user’s photos are private by default.




