Skip to content

Set Up Immich on a Linux VPS – Your Own Photo and Video Cloud with App Backup

Set up Immich on your Linux VPS: use the One-Click App with HTTPS or install it manually with Docker Compose. Automatically back up photos and videos from your smartphone to your own server.

26 November 20265 min read0 Views0 helpful

Introduction

Immich is a self-hosted solution for your photos and videos. The smartphone app automatically backs up new photos and videos to your server. In your browser, you can view them sorted by date, on a map, or in albums. Immich recognizes faces, finds images by searching for content such as “beach” or “dog,” and lets you share albums with family and friends. Your photos stay on your own server.

In this guide, we’ll show you two ways to get started: the easy way, using the One-Click Apps on your VPS, and the manual installation using Docker Compose.

The easy way: Immich as a One-Click App

The fastest way to get your own photo cloud is through the One-Click Apps on your VPS. The app starts Immich with its database, cache, and machine learning service, which recognizes faces and enables image content search. ZapX sets up your domain and HTTPS for you, so you don’t need to use the console.

Requirements

  • A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. For instructions, see Set up One-Click Apps.
  • At least 6 GB RAM for Immich; 8 GB is recommended. Immich also requires at least 2 CPU cores, with 4 recommended.
  • Enough storage space for your photos and videos. Immich stores the originals and also creates thumbnails.

Install

  1. Open your VPS in the ZapX dashboard and go to the One-Click Apps tab.
  2. Search for Immich in the App catalog and click Install app.
  3. Leave Use a custom subdomain or zap.cloud enabled and choose an address. A domain with HTTPS is recommended for the smartphone app and sharing albums.
  4. Under App configuration, you can leave all the default settings as they are. For TZ, enter your time zone, for example, Europe/Berlin. The default is Etc/UTC. IMMICH_VERSION specifies the Immich version; leave it unchanged. ZapX generates the database username and password automatically under Automatically generated values.
  5. Click Queue installation. The app will be online in a few minutes.
Warning

Open the app immediately after installation Immich does not create an admin account in advance. Whoever visits the address first becomes the admin and creates all other users. So, open the app at its address right after installation and create your account.

First launch: admin account and setup

  1. Open your app’s address and click “Getting Started.”
  2. Under “Admin Registration,” enter your email address, a password, and your name, then click “Sign up.”
  3. Sign in with your email address and password.
  4. A short wizard guides you through the design, language, privacy options, and folder structure for your files (“Storage Template”). You can keep the defaults throughout and change everything later in the settings. When you’re done, click “Done.”

Upload photos and connect your smartphone

In your browser, upload photos and videos using “Upload” in the top right. The Immich app for Android and iOS is more convenient:

  1. Install the “Immich” app from the Play Store or App Store.
  2. When you start the app, enter the address of your One-Click App as the server address, for example, https://immich.example.com, and sign in to your account.
  3. In the app, select the albums on your smartphone that Immich should back up, and enable backup.

After uploading, Immich creates thumbnails and analyzes the images for facial recognition and search. If you have a lot of photos, this can take a while and put a heavy load on your VPS during that time. You can check the progress under “Administration” > “Job Queues.”

Tip

Don’t forget to back up Immich itself recommends a 3-2-1 backup: three copies of your data on two different storage media, with one copy stored somewhere else. So don’t keep your originals only in Immich.

App updates and settings

To check whether an update is available for your installation, open the app settings (gear icon), go to App update, and click Check for updates. If a new version is available, install it by clicking Apply update. Your photos, albums, and accounts will be kept, as they are stored in separate volumes. Before updating, read the Immich release notes, which list any potential breaking changes. Immich does not support downgrading to an older version.

You can change the app’s address under App actions. You can also stop, reinstall, or uninstall the app there.

Manual installation

The rest of this guide describes the manual installation using the console and Docker Compose. For example, you might choose this method to integrate Immich into an existing server environment or store your photos in a separate folder. The instructions are based on the official Immich Docker Compose guide.

Requirements

  • A Linux server running Debian or Ubuntu that you can access over SSH.
  • Docker with the Compose plugin. For instructions on installing Docker, see our guide Set up Docker.
  • Local storage for the database, preferably an SSD. Immich does not support network shares for the database.

Download and configure Immich

Create a directory and download the Compose file and sample configuration for the latest version:

Code
mkdir ./immich-app
cd ./immich-app
wget -O docker-compose.yml https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
wget -O .env https://github.com/immich-app/immich/releases/latest/download/example.env

Open the .env file with nano .env and update these values:

  • UPLOAD_LOCATION: The folder for your photos and videos. The default is ./library. Choose a folder with enough free space.
  • DB_DATA_LOCATION: The folder for the database. The default is ./postgres.
  • TZ: Remove the hash at the start of the line and enter your time zone, for example, TZ=Europe/Berlin.
  • DB_PASSWORD: Replace postgres with a password of your own. Use only the characters A-Za-z0-9, without special characters or spaces.

Start Immich

Start Immich from the same directory:

Code
docker compose up -d

Immich will then be running on port 2283. Open http://<IP-Adresse deines Servers>:2283 in your browser and create your admin account as described above under First launch: admin account and setup.

Info

Firewall and HTTPS If a firewall is active on your server, port 2283 (TCP) must be accessible. See Managing the firewall on Linux. For ongoing use and the smartphone app, you should run Immich behind a reverse proxy with a domain and HTTPS. See Set up a reverse proxy with nginx.

Update Immich

Read the release notes before each update and check for potential breaking changes. If you have specified a fixed version for IMMICH_VERSION in .env, enter the new version there first. Also, update the smartphone apps before updating the server:

Code
cd ./immich-app
docker compose pull && docker compose up -d

Wrap-up and additional resources

Congratulations! Immich is now running on your server and backing up your photos and videos. Find out more here:

Do you have questions that aren’t answered here? Our support team is happy to help every day! 🙂

Free tools

Related tools for servers and developers

View all

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.