Install Immich on a VPS and Move Away from Google Photos

Published on 30 November 2026 · 3 min read

Terminal showing the Docker Compose commands used to install Immich on a VPS

Installing Immich on a VPS gives you what Google Photos does well (automatic phone backup, albums, search by face or object, sharing) without paying per gigabyte or leaving your photos with someone else. Immich is open-source software, and the installation takes about twenty minutes.

Which specs do you need?

Immich's documentation asks for at least 2 cores and 6 GB of RAM, and recommends 4 cores and 8 GB. It will run on 4 GB if you turn off image recognition, which is the most resource-hungry part. For storage, start from the size of your current photo library and add some headroom.

Plan Specs Price Best for
VPS Flow Ryzen 9 2 vCore, 6 GB, 80 GB NVMe €9.90/month One person getting started
VPS Edge Ryzen 9 4 vCore, 8 GB, 110 GB NVMe €14.90/month A family, with image recognition

You'll find both on the Linux VPS page.

Step 1: install Docker

Immich needs Docker with the Compose plugin. Use Docker's official packages rather than the ones shipped with your distribution, which cause problems on some versions of Ubuntu.

curl -fsSL https://get.docker.com | sudo sh

Step 2: download the Immich files

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

Step 3: edit the .env file

Open the file with nano .env. There are three lines to change.

UPLOAD_LOCATION sets the folder where your photos will be stored. Pick a location with enough free space.

DB_PASSWORD holds a default password that you must replace. Stick to letters and numbers, as special characters cause problems.

TZ is commented out. Remove the # at the start of the line and set your time zone, for example Europe/London.

Leave DB_USERNAME and DB_DATABASE_NAME as they are.

Step 4: start Immich

docker compose up -d

The command is docker compose with a space, not a hyphen. If you get an error about the -d option, the wrong version of Docker is installed.

Immich is then available at http://YOUR-VPS-IP:2283. The first account you create becomes the administrator.

Step 5: switch to HTTPS

Don't expose Immich over plain HTTP on the internet, or your login details will travel unencrypted. Point a subdomain at your VPS and put a reverse proxy in front of it. With Caddy, the certificate is issued and renewed automatically, and the configuration fits in three lines:

photos.your-domain.co.uk {
    reverse_proxy localhost:2283
}

In the mobile app, enter https://photos.your-domain.co.uk as the server address, log in, then turn on automatic backup.

Don't skip backups

A single server is not a backup. Regularly copy the UPLOAD_LOCATION folder and a database export to another location. Until that's in place, don't delete your original photos from your phone or from Google Photos.

What about importing from Google Photos?

Request an archive of your photos through Google Takeout, then import it with Immich's command-line tool. Depending on the size of your library, allow several hours. Image recognition then runs in the background.

Got a question during the install? Our team answers 7 days a week on Discord or by ticket. And if you're after a full cloud for all your files, our Nextcloud VPS comes with everything already installed.

Blog · Home