Immich server on a VPS: hardware, Docker and cost
Published · updated
An Immich server needs a 64-bit Linux machine with Docker, at least 2 cores and 6 GB of memory (Immich recommends 4 cores and 8 GB), and a disk that holds your whole photo and video library plus 10 to 20% for thumbnails and transcoded videos. On our price list a VPS with 4 vCPU, 8 GB and 500 GB of NVMe costs $40.28 a month; every extra 100 GB adds $4.
The Immich facts below come from its own documentation as we read it on 26 November 2026, when the latest release was v3.4.2. Our prices are from our price list on the same day, per month and without tax.
How much server Immich needs
Immich's requirements page gives a minimum of 2 cores and 6 GB of memory, and recommends 4 cores and 8 GB. With 4 GB it runs only with machine learning turned off, which means no face recognition and no smart search. It supports amd64 and arm64, and since version 3 the machine learning container on amd64 needs a processor of the x86-64-v2 level or newer. On Ubuntu 24.04 or Debian 12 you can check with /lib64/ld-linux-x86-64.so.2 --help, which lists the levels the processor supports.
| VPS size | For | Per month |
|---|---|---|
| 2 vCPU, 4 GB, 250 GB NVMe | Immich without machine learning, a small library | $20.14 |
| 2 vCPU, 6 GB, 500 GB NVMe | Immich's minimum, with face recognition and smart search | $32.68 |
| 4 vCPU, 8 GB, 500 GB NVMe | Immich's recommended size, for a family library | $40.28 |
| 4 vCPU, 8 GB, 1000 GB NVMe | The same, with room for about 800 GB of originals | $60.28 |
| 4 vCPU, 8 GB, 2000 GB NVMe | The largest disk a VPS takes here | $100.28 |
Memory and cores come from Immich; the disk sizes are our suggestion. The vCPUs of our VPS are shared, which is fine for daily use. The heavy moment is the first import, when Immich builds thumbnails, transcodes videos and runs face detection and smart search over every file. The FAQ names those two machine learning jobs as the most demanding on the processor. A large first import on 4 shared vCPUs takes longer, but it finishes; it is not a reason to buy a bigger server for good.
Work out the disk before anything else
Immich never changes your originals. It keeps them as they are, writes edited metadata to .xmp sidecar files and to its database, and adds thumbnails and transcoded videos next to them. The requirements page puts that extra at 10 to 20% of the library on average. The database itself is usually 1 to 3 GB.
So the disk you need is your library times 1.2, plus about 20 GB for the system, Docker images, the database and its daily dumps. A library of 300 GB needs about 380 GB, and a 500 GB VPS leaves room to grow. Look at the size of your phone's photo backup or your current cloud plan to get the starting number, and remember that videos grow it fastest.
Keep both the library and the database on the server's own drive. Immich says the database should be on local SSD storage and never on a network share. Our VPS disks are NVMe, so both can stay on the same drive.
Install Immich with Docker Compose
Immich is installed with Docker and the Compose plugin; its documentation says the old docker-compose command is no longer supported. If Docker is not on the server yet, install Docker Engine from Docker's own repository, as in our Docker hosting guide.
Create a directory, download docker-compose.yml and example.env from Immich's latest release, and rename example.env to .env. In .env, set UPLOAD_LOCATION to the folder for your library, keep DB_DATA_LOCATION on the local disk, change DB_PASSWORD to a random value made only of letters and digits, and set TZ to your time zone. IMMICH_VERSION is set to v3, which follows version 3 releases. Then start it with docker compose up -d.
The compose file starts four containers: the Immich server, the machine learning service, Valkey and PostgreSQL. Only the server publishes a port, 2283, where the web interface and the mobile apps connect.
Port 2283 and HTTPS
Our servers start with a firewall that has only SSH open, and on Ubuntu and Debian that firewall is ufw. That does not protect port 2283: Docker routes traffic to published ports before ufw's rules apply, so the Immich login page is on the internet as soon as the containers start. Change the port line to 127.0.0.1:2283:2283 so only the server itself can reach it, and put a reverse proxy with HTTPS in front.
Caddy is the shortest route: point a domain at the server, open ports 80 and 443 with ufw, and a reverse_proxy line to 127.0.0.1:2283 gets a certificate on its own. Immich's reverse proxy page lists what the proxy must allow. Immich only works at the root of a domain, not under a path such as /immich. Uploads must be allowed to be large: the nginx example sets client_max_body_size to 50000M and timeouts of 600 seconds. With Traefik's default 60-second timeout, videos fail after one minute.
One more limit from the FAQ: Cloudflare Tunnel caps uploads at 100 MB, which stops long videos. A VPS with a public IPv4 address does not need a tunnel.
Backups: the server is not one
Immich makes a database dump every day at 2:00 and keeps the last 14, in the backups folder inside UPLOAD_LOCATION. Those dumps contain only metadata, not photos or videos. Immich recommends a 3-2-1 strategy and says you still need a real backup tool for the files: the folders that matter are library, upload and profile, together with the dumps.
Our servers have one NVMe drive, with no RAID. If Immich is the only place your photos live, copy UPLOAD_LOCATION to a second place every night, at home or with another provider, and stop the Immich server container during the copy if you can, as the backup page suggests.
A VPS or a dedicated server for Immich
For Immich a VPS is usually the better buy, because the disk sets the price. A VPS takes up to 2000 GB of NVMe, while our dedicated servers have one drive of 256 GB to 1 TB. A dedicated server makes sense if the library fits on its drive and you want cores that nobody else uses for imports: the Ryzen 7 6800H with 16 threads, 32 GB and 256 GB costs $79 a month, and the Ryzen 9 7945HX with 32 threads, 64 GB and 512 GB costs $149.
Either way there is no setup fee, three months cost 5% less and six months 10% less, and you can pick the location nearest to where you upload from among our 14.
Questions
How much RAM does Immich need?
At least 6 GB, and Immich recommends 8 GB. With 4 GB it runs only with machine learning turned off, so without face recognition and smart search.
What port does Immich use?
The web interface and the mobile apps connect to port 2283. Bind it to 127.0.0.1 and put a reverse proxy with HTTPS in front, because Docker publishes ports past ufw.
How much disk space does Immich need?
Your library plus 10 to 20% for thumbnails and transcoded videos, plus about 20 GB for the system, Docker and the database. For 300 GB of photos and videos, plan about 380 GB.
How much does an Immich VPS cost?
On our price list, 4 vCPU, 8 GB and 500 GB of NVMe cost $40.28 a month, the size Immich recommends. Each extra 100 GB adds $4, and there is no setup fee.
Sources, read on 26 November 2026: Immich requirements, Immich Docker Compose installation, Immich backup and restore, Immich reverse proxy, Immich FAQ, Immich releases, Docker and ufw.
Written and checked by the VPS Provider team.