Deploy Immich on a VPS in Minutes
Launch a self-hosted Immich photo library on a VPS you fully control. Docker Compose spins up the Immich server, PostgreSQL, Redis and the machine-learning container in a single command — your own Google Photos alternative, with no storage cap beyond the disk you attach.
What you can do with self-hosted Immich on a VPS
Immich is an open-source, self-hosted photo and video backup built as a Google Photos alternative. Run it on a VPS, and your whole library — originals, faces and AI search — lives on infrastructure you own, not someone else's cloud.
Own your library with no storage cap
Face recognition and AI search built in
A true Google Photos and iCloud alternative
Automatic backup from your phone
Everything runs in Docker
Privacy by default
Choose a VPS plan for Immich
Immich runs a machine-learning container alongside PostgreSQL and Redis, so RAM is the spec that matters — the documented minimum is 6 GB, with 8 GB recommended, plus 2–4 CPU cores. That makes Premium VPS the minimum that fits comfortably for a personal or family library with face recognition and semantic search enabled; move to Elite VPS for multiple family accounts, large libraries and heavier concurrent ML jobs. Every plan includes one dedicated IPv4 address, free weekly backups, KVM, and full root/SSH access. Storage scales later: Premium ships a 50 GB SSD (about 41 GB free after the base install), and the SSD/NVMe add-on grows from +25 GB to +300 GB without reprovisioning the VPS. One caveat: keep the PostgreSQL data directory on the local SSD, never a network share — Immich won't run correctly otherwise.
- 40 CountriesFrom$33.99 / 1 month$32.29 with is*smart
- Xeon 4x2.20 GHz CPU
- 8 Gb RAM
- 50GB SSD Drive
- Unmetered Bandwidth
- 40 CountriesFrom$50.99 / 1 month$48.44 with is*smart
- Xeon 6x2.20 GHz CPU
- 16 Gb RAM
- 80GB SSD Drive
- Unmetered Bandwidth
- 40 CountriesFrom$76.49 / 1 month$72.67 with is*smart
- Xeon 8x2.20 GHz CPU
- 32 Gb RAM
- 100GB SSD Drive
- Unmetered Bandwidth
Boost Your VPS Server Resources
Check out how you can change the configuration of your VPS. You can purchase additional drive space, increase CPU performance, add RAM, and take advantage of additional services without having to switch to a new plan.
How to deploy Immich on a VPS
A full install of Immich on a fresh CentOS Stream 9 server takes about two minutes — from a cold Docker image pull to four healthy containers. Immich is Docker-native, so Docker Compose does most of the work. The steps below cover the core install; for the full walkthrough with every command and the exact output, see our complete guide to installing Immich on a VPS.
At checkout, select CentOS 9 x64. Worth knowing: the OS reports itself as "CentOS Stream 9" — functionally the same, just don't be surprised by the string.
Step 01 — Install Docker
is*hosting VPS plans don't ship with Docker. Root SSH is included on every plan, so no sudo is needed anywhere in this guide. Install Docker Engine with the Compose v2 plugin:
curl -fsSL https://get.docker.com | shsystemctl enable --now dockerStep 02 — Download and configure the Compose files
Create a working directory and pull Immich's official Compose file and example environment file:
mkdir /root/immich-app && cd /root/immich-appwget -O docker-compose.yml https://github.com/immich-app/immich/releases/latest/download/docker-compose.ymlwget -O .env https://github.com/immich-app/immich/releases/latest/download/example.envA minimal CentOS 9 image ships without a text editor, so set a strong database password and your timezone with sed (replace Europe/Berlin with your own):
sed -i "s/DB_PASSWORD=postgres/DB_PASSWORD=$(openssl rand -hex 12)/" .envsed -i "s/^# TZ=Etc\/UTC/TZ=Europe\/Berlin/" .envStep 03 — Start the stack
Bring up all four containers:
docker compose up -dDocker pulls the server, PostgreSQL, Redis/Valkey and machine-learning images and starts them — about a minute on a Premium VPS. Confirm they report healthy:
docker compose psOnly one port is reachable from outside — 2283, published by Docker on IPv4 and IPv6. PostgreSQL (5432) and Redis (6379) stay inside the container network, so no extra firewall rules are needed.
Step 04 — Register and make your first upload
Open http://<your-vps-ip>:2283 and choose Getting Started. The first account you create automatically becomes the admin. The onboarding wizard walks through theme, language and two privacy screens — switch off Map and Version Check here if you want a clean privacy boundary. Then upload your first photo, or connect the mobile app for automatic camera-roll backup.
Next steps (before production): keep the Postgres data on the local SSD, add storage if your library is large, and take a targeted database backup before every update:
docker exec immich_postgres pg_dumpall -U postgres | gzip > /root/immich-backup-$(date +%F).sql.gzcd /root/immich-app && docker compose pull && docker compose up -dCommon issues
- Use Docker Compose v2, not docker-compose. Immich requires the docker compose v2 command. The older standalone docker-compose binary is deprecated and unsupported, and using it produces confusing errors rather than a clean failure. The get.docker.com script installs the correct plugin.
- Keep the Postgres data on a local disk. The PostgreSQL data directory must live on a local filesystem with Unix permissions (EXT4, XFS or similar). It will not work over a network share — Immich's own docs are blunt about this.
- Plan RAM around the ML container. Immich's minimum is 6 GB, with 8 GB recommended and 2–4 CPU cores. There's an official 4 GB workaround that disables the machine-learning container, but that also kills face recognition and semantic search — most of what makes Immich more than a file server.
- Disk fills faster than you expect. Premium's 50 GB SSD leaves roughly 41 GB after the base install. A real family library will want the SSD/NVMe add-on (+25 GB to +300 GB), which scales without reprovisioning the VPS.
- External calls are on by default. During onboarding, the Map feature (tiles.immich.cloud) and Version Check (version.immich.cloud) are enabled and reach out to external services. Toggle both off in Server Privacy if you treat self-hosting as a genuine privacy boundary.