Skip to content
In-house anti-DDoS, included on VPS, game servers and web hosting · hosted in France · cancel anytime See our plans
CloudFive
Log in

01

What Immich does

Immich takes the idea of online photo services, but on a server you control:

  • Backup from your phone: the mobile app (App Store, Google Play or F-Droid) uploads the albums you choose, including in the background, and avoids duplicates.
  • A web gallery: albums, shared albums, public links, a map, memories, favorites and archive, with several user accounts.
  • Smart search: by metadata, objects or faces. The analysis runs on your server, in Immich's machine learning container, not on an outside service.

The installation has four containers: the server, machine learning, a PostgreSQL database and a Valkey cache. The official documentation asks for 64-bit Linux, at least 6 GB of memory (8 recommended) and at least 2 cores (4 recommended). With only 4 GB, Immich can run with machine learning disabled.

It also states that Immich runs well in a full virtual machine, and that Docker inside an LXC container is not recommended, although it may be possible for advanced users. First apply the basic settings from securing a Linux VPS, then install Docker with its Compose plugin by following installing Docker on a VPS. Immich requires the docker compose command: the old docker-compose is no longer supported.

02

Install Immich with Docker Compose

Create a folder for Immich and download the two files of the latest release, as the official documentation describes. Always take the release files, not the ones from the development branch:

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

Open the .env file (sudo nano .env) and set these lines:

UPLOAD_LOCATION=./library
DB_DATA_LOCATION=./postgres
TZ=Europe/Paris
DB_PASSWORD=un-mot-de-passe-genere
  • UPLOAD_LOCATION: the folder where Immich stores photos, videos, thumbnails and its database backups. It needs room: this is the one that will grow.
  • DB_DATA_LOCATION: the PostgreSQL database files. Keep them on the local disk, never on a network share.
  • TZ: remove the # in front of the line to set the time zone.
  • DB_PASSWORD: replace the default value. Use only letters and digits, with no special characters or spaces: openssl rand -hex 24 generates a suitable one.

Leave IMMICH_VERSION as shipped: it follows the major version of the downloaded release. In docker-compose.yml, then replace the line - '2283:2283' with - '127.0.0.1:2283:2283'. The original file publishes the port on every interface, so in plain HTTP on the Internet; and Docker writes its own filtering rules ahead of UFW's, which would not block it. Start:

sudo docker compose up -d
sudo docker compose ps
03

First account and mobile apps

Since port 2283 can only be reached from the VPS, open an SSH tunnel from your computer, then go to http://localhost:2283:

ssh -L 2283:127.0.0.1:2283 utilisateur@IP_DU_VPS
  • The first account created is the administrator. Click the getting started button and create it right away, with a long password. It can then add the other users.
  • One account per person: each has their own library, and sharing between accounts (shared albums, partner sharing) is set up afterwards.
  • The mobile app: it asks for the server address. Enter the HTTPS address you will create in the next section, log in, then choose which phone albums to back up.

The mobile app is usually compatible with the server's major version and the previous one, but the server only accepts its own major version: update the apps on the phones before moving the server to a new major version.

04

HTTPS access through a reverse proxy

For phones to upload their photos from anywhere, Immich must answer on a domain name over HTTPS, for example photos.example.com. The simplest method is Nginx Proxy Manager, with its shared proxy Docker network. In docker-compose.yml, add to the immich-server service:

    networks:
      - default
      - proxy

and, at the very bottom of the file:

networks:
  proxy:
    external: true

The default network must stay in the list: it is how the server reaches its database and cache. Restart with sudo docker compose up -d, then create the proxy host in Nginx Proxy Manager:

  1. Details tab: the domain, the http scheme, the host immich_server (the container name) and port 2283. Tick Websockets Support.
  2. SSL tab: request a Let's Encrypt certificate and tick Force SSL.
  3. Advanced tab: add client_max_body_size 50000M;, the value from the official example, so the proxy does not reject large video uploads.

Immich must be served at the root of a domain or subdomain, never in a subfolder such as example.com/photos. If you prefer a classic Nginx with Certbot and Let's Encrypt, the Immich documentation provides a complete configuration example. For sharing links to carry your domain, also enter it in the server settings, in Immich's administration.

05

Disk space, updates and backups

Disk space goes fast. A recent phone produces heavy photos and much heavier videos. Thumbnails and videos transcoded for playback add 10 to 20% to the library size on average, and the database usually weighs 1 to 3 GB. Estimate the size of your camera rolls before choosing the disk, then keep an eye on it:

df -h /opt/immich-app
sudo du -sh /opt/immich-app/library

A full disk blocks uploads and can stop the database: check it regularly, and free or add space before it fills up. To be warned if Immich stops answering, add its address to Uptime Kuma.

Updating. Read the release notes before every update: they flag breaking changes and the changes to carry over into your files. Going back to an earlier version is not supported, so take a backup or a snapshot first. Then, in /opt/immich-app:

sudo docker compose pull && sudo docker compose up -d
sudo docker image prune

Back up the database AND the files. Immich itself creates a copy of its database every day (at 2:00 AM by default, keeping the last 14) in UPLOAD_LOCATION/backups. These copies contain no photos, only metadata: without the library folder they are useless, and the folder alone is not enough either, because Immich finds its files through its database. So copy all of UPLOAD_LOCATION off the VPS, for example with rsync run from another machine:

rsync -a utilisateur@IP_DU_VPS:/opt/immich-app/library/ /sauvegardes/immich/

Immich does not replace a backup. It is a copy of your photos, on a single server: a failure, a wrong move or a failed update can take it away. The Immich team recommends the 3-2-1 rule: three copies, on two different media, one of them off site. Keep your originals somewhere other than the VPS.

06

On CloudFive

CloudFive does not offer a managed Immich: you install it yourself on a VPS, with root access. The Ryzen VPS, from €5.99 per month, offers:

  • an AMD Ryzen 9 9950X, with DDR5 memory and NVMe storage, useful for photo analysis and video transcoding;
  • the full virtualisation of the KVM VPS, the environment Immich recommends: Docker and Docker Compose install with the official script (see the Docker VPS page); choose a plan with at least 6 GB of memory and test before sending your whole camera roll;
  • a dedicated IPv4 address and basic DDoS protection included;
  • snapshots from the customer area, to take before an update.

Size the disk according to your library, and keep a copy off the VPS. Servers are in France, on our own network, monthly with no commitment, with support in French 7 days a week by tickets, on Discord and by phone. For your files and documents rather than your photos, see installing Nextcloud on a VPS.

07

Frequently asked questions

How do I install Immich on a VPS?

Install Docker with the Compose plugin, download the docker-compose.yml and example.env of the latest release, rename the latter to .env and set UPLOAD_LOCATION and DB_PASSWORD. Run docker compose up -d, then open port 2283 through an SSH tunnel or an HTTPS reverse proxy and create the administrator account.

Which port does Immich use?

Immich answers on port 2283 over HTTP. On a VPS, publish it only on 127.0.0.1 and put an HTTPS reverse proxy in front, on ports 80 and 443. The original file publishes the port on every interface, which would leave it reachable unencrypted.

How much memory does Immich need?

The official documentation asks for at least 6 GB of memory and recommends 8, with at least 2 cores and 4 recommended. With only 4 GB, Immich can run if machine learning is disabled, which means no smart search and no face recognition.

Does Immich replace a backup of my photos?

No. Immich keeps a copy of your photos on a single server, which can fail or be wiped by mistake. Back up both the UPLOAD_LOCATION folder and the database, off the VPS, and follow the 3-2-1 rule recommended by the Immich team.

How do I update Immich?

First read the release notes, which flag breaking changes, and make a backup: going back is not supported. Then run docker compose pull and docker compose up -d in the Immich folder, after updating the mobile apps when there is a new major version.

Support CloudFive AI

An answer right away, a real team behind it.

CloudFive AI answers you at any hour, in seconds. When it doesn’t know, or as soon as you ask, the team that runs the machines takes over. No offshore call centre.

  • TicketThe team replies in under 2 hours, 7 days a week.
  • CloudFive AIAt any hour, on ia.cloudfive.fr, Discord and in your customer area.
  • DiscordThe team, the AI and other customers, in the help channel.
  • Your data stays with usAI runs on our servers in France; e-mails, IPs and passwords are masked.
A ticket in the customer area: a customer’s question about a Minecraft plugin, and the CloudFive team’s reply
A real ticket in the customer area, answered by the team (demo account; shown in French).
CUSTOMER AREA · APP

Your servers.
At your fingertips.

Restart a server, watch its resources live, pay an invoice or open a ticket — and get an alert when something goes wrong.

  • The status of all your services at a glance
  • Blocked attacks, filtered traffic, monthly peak
  • A notification when a server goes down or an invoice is due

App coming soon · in the meantime, everything works in your browser at manager.cloudfive.fr

The CloudFive app: the list of your services, with their status
The CloudFive app: the home screen, your services’ status, blocked attacks and an invoice to pay