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 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.
- 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.
- Open your VPS in the ZapX dashboard and go to the One-Click Apps tab.
- Search for Immich in the App catalog and click Install app.
- 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.
- 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 isEtc/UTC.IMMICH_VERSIONspecifies the Immich version; leave it unchanged. ZapX generates the database username and password automatically under Automatically generated values. - Click Queue installation. The app will be online in a few minutes.
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.
- Open your app’s address and click “Getting Started.”
- Under “Admin Registration,” enter your email address, a password, and your name, then click “Sign up.”
- Sign in with your email address and password.
- 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.”
In your browser, upload photos and videos using “Upload” in the top right. The Immich app for Android and iOS is more convenient:
- Install the “Immich” app from the Play Store or App Store.
- 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. - 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.”
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.
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.
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.
- 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.
Create a directory and download the Compose file and sample configuration for the latest version:
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: Replacepostgreswith a password of your own. Use only the charactersA-Za-z0-9, without special characters or spaces.
Start Immich from the same directory:
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.
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.
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:
cd ./immich-app
docker compose pull && docker compose up -d
Congratulations! Immich is now running on your server and backing up your photos and videos. Find out more here:
- Immich documentation – features, settings, and the smartphone app
- Immich updates – official update instructions
Do you have questions that aren’t answered here? Our support team is happy to help every day! 🙂