Which Server Size for Immich
Memory decides whether Immich runs well; storage decides how big a library fits.
| Plan | Memory | Storage | For Immich | Price |
|---|---|---|---|---|
| Bronze VPS | 6 GB | 75 GB | Meets the 6 GB minimum | $37.50/mo |
| Silver VPS | 8 GB | 100 GB | Meets the 8 GB recommendation | $46.50/mo |
| Gold VPS | 12 GB | 150 GB | Meets the 8 GB recommendation | $60.00/mo |
| Diamond VPS | 16 GB | 200 GB | Meets the 8 GB recommendation | $73.50/mo |
| Platinum VPS | 24 GB | 300 GB | Meets the 8 GB recommendation | $100.00/mo |
| AMD Ryzen 9 5950X dedicated | 128 GB | 2x 1TB NVMe | Meets the 8 GB recommendation | $399.00/mo |
A family library of a few hundred gigabytes fits a larger VPS; terabytes of photos and video fit a dedicated server, whose fast cores also make face recognition and video transcoding quicker.
1. Prepare the Server
On Ubuntu 24.04, secure the server and install Docker. Point an A record such as photos.example.com at it, and allow ports 80 and 443.
2. Download and Configure Immich
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 nano .env
In .env, check these lines:
UPLOAD_LOCATION=./library # where photos and videos are stored DB_DATA_LOCATION=./postgres # keep on the server's own disk, never a network share DB_PASSWORD=change-me-letters-and-digits-only TZ=America/New_York # uncomment and set your time zone
Use only letters and digits in the database password, as Immich's example file asks. Leave IMMICH_VERSION as it came with the release.
3. Keep the Web Port Private
Docker opens published ports past ufw, as explained in why ufw does not block Docker ports. In docker-compose.yml, find the ports: line of the immich-server service (2283 in current releases) and bind it to the server itself, so only Caddy can reach it:
ports:
- "127.0.0.1:2283:2283"docker compose up -d docker compose ps # every service should be running or healthy
4. Add HTTPS With Caddy
sudo apt install -y caddy
sudo tee /etc/caddy/Caddyfile >/dev/null <<'EOF'
photos.example.com {
reverse_proxy 127.0.0.1:2283
}
EOF
sudo systemctl reload caddyCaddy fetches and renews the certificate by itself. Open https://photos.example.com, create the administrator account, then add accounts for your family under Administration → Users.
5. Connect Your Phone
Install the Immich app, enter https://photos.example.com as the server, sign in and turn on backup. The first upload of a large camera roll takes a while and counts toward your plan's monthly transfer; see what 1 TB of bandwidth means.
6. Back It Up Off the Server
Immich keeps daily database dumps in UPLOAD_LOCATION/backups (14 by default), but it does not back up your files. Copy the whole UPLOAD_LOCATION folder, which includes those dumps, to another place every night, and follow the 3-2-1 rule Immich recommends: a storage box with Borg works well, as only new photos are sent each night.
Update with docker compose pull && docker compose up -d after reading the release notes.