TechBuzzPro

Immich Self-Hosted Photo and Video: How It Works

· 7 min read · Apps & Browsers

In this article
  1. What Immich Actually Does
  2. Why People Choose Self-Hosting
  3. How Immich Works Under the Hood
  4. Choosing Your Hardware
  5. Common Setup Problems and Fixes
  6. Immich vs. Other Self-Hosted Options
  7. Cost and Maintenance
  8. Frequently Asked Questions

Yes, Immich is a self-hosted photo and video management platform that gives you a private, Google Photos-like experience on your own hardware. You run the server on your own machine or NAS, install mobile and desktop apps, and your photos and videos sync directly to your storage, not to a cloud service you don’t control.

What Immich Actually Does

Immich is a full-featured media backup and organization tool. It was created as an open-source alternative to Google Photos, and it has grown quickly since its first release in 2022. The project is under active development, with new features added regularly.

At its core, Immich does these things:

  • Automatic backup: The mobile app uploads photos and videos in the background when you’re on Wi-Fi or cellular, depending on your settings.
  • Facial recognition: It groups people in your photos using machine learning, and you can name and search for them.
  • Object and scene search: You can search for “beach,” “dog,” “birthday,” and similar terms without manually tagging anything.
  • Timeline and albums: Photos are organized by date, and you can create shared or private albums.
  • Multi-user support: You can create accounts for family members, each with their own private library.
  • Metadata preservation: EXIF data like camera model, GPS, and capture time is kept and used for sorting.
  • Sharing: You can share individual items or albums via public links, with optional passwords and expiry dates.

Immich also has a web interface for browsing and managing your library, and it supports server-side storage templates so you can organize files in folders the way you want.

Why People Choose Self-Hosting

The main reason people run Immich is privacy. When you use Google Photos or iCloud, your media is stored on someone else’s servers, and those companies can scan, analyze, and use your data for their own purposes (such as improving their AI or serving ads). Self-hosting means your photos stay on hardware you own, and you control who has access.

Another reason is cost. Cloud storage subscriptions add up, especially if you have a large library. If you already have a NAS or an old PC with spare disk space, the ongoing cost of running Immich is just electricity and the drives themselves.

There’s also the matter of control. With self-hosting, you decide when to upgrade, what features to enable, and how long to keep files. You aren’t at the mercy of a company that might change its pricing, terms, or shut down the service entirely.

How Immich Works Under the Hood

Immich is built as a set of Docker containers. The main components are:

  • Server: Handles API requests, authentication, and database operations.
  • PostgreSQL database: Stores metadata, user accounts, and album information.
  • Redis: Used for caching and background job queues.
  • Machine learning service: Runs facial recognition and smart search. This is optional but recommended.
  • Web client: A React-based interface you access from a browser.

When you upload a photo, the server stores the original file on disk (or on your NAS), extracts metadata, creates multiple thumbnail sizes, and runs it through the ML pipeline if enabled. The mobile app uses a background uploader that can be configured to only work on Wi-Fi, only when charging, or both.

You can install Immich on a Linux server, a NAS like Synology or QNAP, or even a Raspberry Pi (though performance will be limited for large libraries). The official documentation provides a docker-compose.yml file that sets up everything with a single command.

Choosing Your Hardware

Immich is not extremely demanding, but it does need some resources. Here’s a rough guide:

  • Minimum: 2 CPU cores, 2 GB RAM, and enough storage for your photos. This will work for a small library (a few thousand items) but may be slow for ML tasks.
  • Recommended: 4+ CPU cores, 8 GB RAM, and a fast disk (SSD for the database, HDD for files). This handles a library of tens of thousands of photos comfortably.
  • Large libraries: If you have 100,000+ items, consider a dedicated machine with more RAM and a good CPU, because facial recognition and search indexing will take time.

Storage is the biggest factor. A single high-resolution photo is typically 3–8 MB, and a 4K video can be several GB. Plan for at least double the size of your current library if you want headroom for future uploads.

Common Setup Problems and Fixes

Most issues people run into are related to networking and permissions.

  • Uploads fail: Check that your phone and server are on the same network, and that the server’s port (usually 2283) is reachable. If you’re using a reverse proxy, make sure WebSocket connections are enabled.
  • Facial recognition doesn’t work: The ML service must be running. Check the Docker logs for errors, and make sure you have enough RAM. Sometimes you need to re-run the job after adding new photos.
  • Slow search: The first search may take a while because Immich is building an index. Give it time, and consider upgrading your CPU if it’s consistently slow.
  • Database corruption: Always back up the PostgreSQL data directory. Use the built-in backup script or a scheduled dump.
  • Mobile app can’t connect: If you’re accessing Immich from outside your home, you need to set up port forwarding or a VPN. Don’t expose the server directly to the internet without HTTPS.

Immich vs. Other Self-Hosted Options

Immich is not the only self-hosted photo manager. Here’s how it compares to the most common alternatives:

  • Nextcloud Photos: Nextcloud is a full cloud suite with file sync, calendar, and more. Its Photos app is simpler than Immich and lacks advanced features like facial recognition. Choose Nextcloud if you need an all-in-one solution.
  • PhotoPrism: PhotoPrism is a mature photo organizer with AI tagging and face recognition. It’s easier to set up than Immich, but its development pace is slower, and the free version has fewer features than the paid one.
  • LibrePhotos: A lightweight option that focuses on face recognition. It’s less polished and has a smaller community.
  • Piwigo: Piwigo is more of a photo gallery than a backup tool. It’s great for sharing, but it doesn’t have automatic mobile backup or smart search.

Immich stands out because it’s the most actively developed and has the best mobile app experience. Its feature set is very close to Google Photos, which is what most people want.

Cost and Maintenance

Immich itself is free and open-source (AGPL-3.0 license). You only pay for the hardware and electricity. However, self-hosting isn’t “set and forget.” You need to:

  • Update the Docker containers regularly to get bug fixes and new features.
  • Back up the database and your media files.
  • Monitor disk space, as videos and RAW files can fill a drive quickly.
  • Keep the server secure by using strong passwords, HTTPS, and possibly a VPN for remote access.

If you’re not comfortable with command-line tools and Docker, there’s a learning curve. But the official docs are thorough, and the community is active on Discord and GitHub.

Frequently Asked Questions

Is Immich safe to use for my private photos?

Yes, as long as you secure your server. Use a strong admin password, enable HTTPS (via a reverse proxy like Caddy or Nginx), and keep the software updated. Avoid exposing the server directly to the internet without a firewall. If you’re not technical, consider using a VPN like Tailscale to access Immich remotely.

Can I migrate from Google Photos to Immich?

Yes. You can export your Google Photos data using Google Takeout, then upload the files to Immich. The mobile app also lets you upload directly from your phone. Metadata like dates and locations will be preserved, but face tags and albums may not transfer automatically.

Does Immich delete my original files?

No. Immich stores the original files on your server. It creates thumbnails and compressed versions for viewing, but your originals are never deleted unless you manually remove them from the library.

Can I share albums with people who don’t have an account?

Yes. You can create a public share link for any album or individual asset. You can set a password and an expiration date. The link opens in a web browser, and viewers don’t need an account.

Is Immich stable enough for daily use?

Immich is under active development and is considered stable for most users, but it’s not a finished product. Major updates may introduce breaking changes, so always read the release notes and back up before upgrading. Many people use it as their primary photo backup, but it’s wise to keep a second copy of your most important files.

What happens if the project stops being developed?

Because Immich is open-source, you can fork the code and continue using it, or you can migrate to another tool. Your data is stored in standard formats (JPEG, PNG, MP4, etc.), so you’re never locked in. The database is PostgreSQL, which is widely supported.