Self-Host Immich Photo & Video Cloud on Netcup EPYC Root Servers
Self-hosting Immich with CLIP semantic search, InsightFace facial clustering, Valkey, and VectorChord PostgreSQL requires at least 6–8 GB RAM and local NVMe IOPS. Netcup Root-Server RS 1000 G12.5 (4 dedicated AMD EPYC™ 9645 or 9655 AVX-512 cores, 8 GB DDR5 ECC, 2.5 Gbit/s Traffic Flatrate) costs €15.22/mo net effective on 12M with 2 free months via 6874nc (€15.52/mo net on 24M), replacing €30/mo cloud photo plans.
| Tier | Workload Scale | CPU / RAM / Disk | Matched Netcup Plan |
|---|---|---|---|
| Starter · Personal Photo Vault | 1–2 Users · Up to 45,000 photos · Standard ViT-B-32 CLIP Search | 4 vCores (Shared) · 8 GB RAM · 128 GB | VPS 1000 G12.5 (€11.17/mo net eff.) |
| Production · Family AI Hub (AVX-512) | 3–6 Family Members · 120,000+ assets · Fast AVX-512 Face & Video Jobs | 4 Dedicated EPYC 9645/9655 · 8 GB RAM · 128 GB | RS 1000 G12.5 (€15.22/mo net eff.) |
| Scale · Prosumer RAW & 4K Library | 300,000+ Assets · XLM-Roberta-Large Multilingual CLIP + External Archive | 8 Dedicated EPYC 9645/9655 · 16 GB RAM · 256 GB | RS 2000 G12.5 (€31.35/mo net eff.) |
name: immich
services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
restart: unless-stopped
ports: ["127.0.0.1:2283:2283"]
volumes:
- ${UPLOAD_LOCATION:-./library}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
env_file: [.env]
depends_on: { redis: { condition: service_healthy }, database: { condition: service_healthy } }
immich-machine-learning:
container_name: immich_machine_learning
image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
restart: unless-stopped
volumes: ["model-cache:/cache"]
env_file: [.env]
environment:
MACHINE_LEARNING_WORKERS: "1"
MACHINE_LEARNING_REQUEST_THREADS: "3"
MACHINE_LEARNING_MODEL_TTL: "300"
mem_limit: 3072m
redis:
container_name: immich_redis
image: docker.io/valkey/valkey:8-bookworm
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "redis-cli ping | grep -q PONG"]
interval: 5s
retries: 5
database:
container_name: immich_postgres
image: ghcr.io/immich-app/postgres:16-vectorchord0.3.0-pgvectors0.3.0
restart: unless-stopped
shm_size: 256mb
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD:?Set strong DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME:-postgres}
POSTGRES_DB: ${DB_DATABASE_NAME:-immich}
POSTGRES_INITDB_ARGS: "--data-checksums"
DB_STORAGE_TYPE: "SSD"
volumes: ["${DB_DATA_LOCATION:-./postgres}:/var/lib/postgresql/data"]
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USERNAME:-postgres} -d ${DB_DATABASE_NAME:-immich}"]
interval: 5s
retries: 10
volumes: { model-cache: {} }- • Best Seller: 2 Months Completely Free (€36.52 net saved on 12M)
- • 4 Dedicated AMD EPYC™ 9645 or 9655 cores + 8 GB DDR5 ECC
- • 2.5 Gbit/s Unlimited Traffic (>3 TB/24h → 300 Mbit/s); New & Existing Users
Works for new & existing accounts — opens directly in an empty Netcup cart.
How Fast Does immich-machine-learning Run on AMD EPYC™ 9645 or 9655 AVX-512 Without a GPU?
Every photo uploaded to Immich passes through the Python ONNX Runtime inside immich-machine-learning, executing two heavy neural networks: OpenAI/SigLIP CLIP (ViT-B-32 or multilingual XLM-Roberta-Large-Vit-B-32) for natural-language semantic search ("sunset on snowy mountain") and InsightFace (buffalo_l) for multi-person face detection and recognition. Loading both ONNX models simultaneously consumes 1.6 GB to 2.9 GB of container RAM, causing immediate Linux OOM-killer crashes on 4 GB budget servers unless machine learning is completely disabled. On Netcup Root-Server RS 1000 G12.5, 4 dedicated physical AMD EPYC™ 9645 or 9655 cores expose full hardware AVX-512 (AVX512_VNNI and AVX512_BF16) vector extensions paired with 8 GB DDR5 ECC memory. Benchmarks confirm AVX-512 accelerates ONNX matrix inference by 2.8x to 3.4x over legacy AVX2 shared vCPUs, indexing 12–18 high-resolution iPhone HEIC photos per second on CPU alone while unloading idle models automatically after 300 seconds (MACHINE_LEARNING_MODEL_TTL=300).
To keep timeline scrolling and mobile photo uploads silky smooth during initial 50,000-photo bulk imports, pin MACHINE_LEARNING_REQUEST_THREADS="3" on a 4-core RS 1000 G12.5 (or "6" on an 8-core RS 2000 G12.5). Leaving at least one dedicated EPYC core uncontended guarantees that immich-server API queries and Caddy TLS handshakes never queue behind FFmpeg or ONNX batch threads.
| Service Container | Idle RAM | Bulk Import RAM | Hardware Bottleneck |
|---|---|---|---|
| immich-server (API + FFmpeg + Sharp) | 410 MB | 1,450 MB | CPU cores (HEVC transcode & WebP thumbnails) |
| immich-machine-learning (CLIP + Face) | 190 MB (TTL unloaded) | 2,650 MB | AVX-512 vector units + ≥3 GB free RAM |
| database (Postgres 16 + VectorChord) | 320 MB | 1,350 MB | Local NVMe 4K random IOPS + 256 MB shm_size |
| redis (Valkey 8 BullMQ Queue) | 35 MB | 140 MB | Sub-millisecond in-memory job locking |
Why Must PostgreSQL VectorChord Indexes and Thumbnails Stay on Local NVMe?
Modern Immich releases replaced legacy vector plugins with VectorChord (ghcr.io/immich-app/postgres:16-vectorchord...) alongside --data-checksums and DB_STORAGE_TYPE: SSD random-page-cost optimizations to search hundreds of thousands of 512-dimensional CLIP and 512-dimensional facial embeddings in under 15 milliseconds. When family members scroll fast across a 10-year mobile photo timeline, immich-server fires dozens of concurrent SQL range queries and reads hundreds of tiny 8 to 35 KB WebP and AVIF blurhash thumbnails from disk simultaneously. Mounting DB_DATA_LOCATION or Immich’s thumbs and encoded-video directories over high-latency network shares such as SSHFS, rclone FUSE, or remote WebDAV/SMB corrupts PostgreSQL WAL checksums and introduces severe 400ms+ UI stutter. Always keep ./postgres and Immich’s thumbs and profile folders pinned directly on Netcup’s local enterprise RAID NVMe SSD (128 GB on RS 1000 or 256 GB on RS 2000), mounting remote Storage Box or NAS volumes strictly for cold library originals.
100,000 smartphone photos occupy ~350 GB of raw HEIC/MOV originals, yet their generated WebP thumbnails and Postgres VectorChord database consume only ~24 GB! Mount an external Hetzner/Netcup Storage Box or S3JuiceFS volume purely onto /usr/src/app/upload/library while leaving /usr/src/app/upload/thumbs on ultra-fast local Netcup NVMe.
How Do You Build an Automated 3-2-1 Encrypted Offsite S3 Backup for Immich?
Replacing Google Photos (€9.99 to €29.99/mo) or Apple iCloud+ 6 TB (€29.99/mo) with self-hosted Immich puts full operational stewardship of irreplaceable family memories onto your backup architecture—hardware RAID NVMe protects against physical drive failure on Netcup’s host, not accidental album deletion or broken migrations. Since Immich v1.115+, the server includes a built-in automated daily PostgreSQL database dumper writing compressed .sql.gz snapshots directly into UPLOAD_LOCATION/backups. Combining that native database dump with a nightly restic or borgbackup cronjob that encrypts (AES-256) and deduplicates UPLOAD_LOCATION/library plus UPLOAD_LOCATION/backups to an external S3 bucket (such as Cloudflare R2, Backblaze B2, or European Scaleway/Wasabi at roughly €5 to €6 per TB monthly) establishes true 3-2-1 disaster resilience: copy 1 on smartphones, copy 2 on Netcup German NVMe, and copy 3 encrypted offsite—skipping transient thumbs and encoded-video folders to save 20% in backup storage.
#!/usr/bin/env bash
set -euo pipefail
export AWS_ACCESS_KEY_ID="${S3_ACCESS_KEY}"
export AWS_SECRET_ACCESS_KEY="${S3_SECRET_KEY}"
export RESTIC_REPOSITORY="s3:https://${S3_ENDPOINT}/immich-vault"
export RESTIC_PASSWORD="${RESTIC_ENCRYPTION_SECRET}"
# Back up originals + Immich native DB dumps; exclude regenerable thumbnails & transcodes
restic backup /opt/immich/library \
--exclude="/opt/immich/library/thumbs" \
--exclude="/opt/immich/library/encoded-video"
restic forget --keep-daily 7 --keep-weekly 4 --keep-monthly 6 --pruneHow Do You Configure Reverse Proxy Limits for 4K ProRes Mobile Auto-Backups?
The number-one complaint after deploying Immich behind Nginx, Cloudflare Proxy, or Traefik is iOS and Android background sync stalling permanently at 99% on 4K 60fps family videos larger than 100 MB. Two hidden network bottlenecks cause those upload failures: default reverse-proxy client_max_body_size caps (1 MB in stock Nginx, 100 MB hard ceiling on Cloudflare’s free orange-cloud proxy) and short HTTP read timeouts during cellular roaming uploads. Point a DNS-only (grey-cloud or direct Netcup DNS) subdomain photos.yourdomain.com straight to your Netcup IPv4 and /64 IPv6 addresses—giving mobile clients full 2.5 Gbit/s wire speed with Traffic Flatrate (Unlimited—temporary throttle to 300 Mbit/s only if 24h traffic exceeds 3 TB, lifting automatically) without Cloudflare’s 100 MB upload wall—and configure Caddy 2 (max_size 50GB) or Nginx (client_max_body_size 50000M; proxy_request_buffering off; proxy_read_timeout 600s;). Pair your instance with OAuth2/OIDC Passkey login (Pocket ID, Authentik, or Authelia) and disable public user registration immediately after onboarding your family accounts.
- Zero Cloud Photo Scanning: Your family’s biometric face vectors and GPS EXIF metadata never train third-party ad models.
- Native iOS & Android App Parity: Background album sync, Live Photos, Apple ProRAW, partner sharing, and map view work just like Google Photos.
- Fast 2.5 Gbit/s Traffic Flatrate Sync: Back up a 60 GB holiday SD card in minutes over Netcup’s 2.5 Gbit/s port (<3 TB/24h unthrottled) without egress fees.
- Co-Host Family Services: Run Vaultwarden, Nextcloud, and Immich side by side on one €15.22/mo RS 1000 G12.5 or €31.35/mo RS 2000 G12.5.
Popular Self-Hosted App Blueprints
Self-hosting Coolify or Dokploy transforms a Linux server into an automated Git-push PaaS with Traefik/Caddy SSL, PR previews, and managed databases, requiring 4 cores and 8 GB RAM to survive Nixpacks build spikes. Netcup RS 1000 G12.5 (4 dedicated AMD EPYC™ 9645 or 9655 cores, €15.22/mo net eff. on 12M with 2 free months via 6874nc; €15.52/mo net on 24M) replaces €85+/mo Vercel and Render bills.
Installing Proxmox VE on Netcup Root Servers via custom SCP ISO mounting consolidates dozens of isolated Linux workloads onto 16–64 GB DDR5 ECC RAM with routed /64 IPv6 and NAT IPv4. Netcup RS 2000 (€31.35/mo), RS 4000 (€64.98/mo), and RS 8000 G12.5 (€114.33/mo net with vouchers) cut €195+/mo cloud fleet bills.
Self-hosting Nextcloud Hub (PHP-FPM, Redis, PostgreSQL 16, and Collabora Office) on a Netcup RS 1000 G12.5 (4 dedicated AMD EPYC™ 9645 or 9655 cores, 8 GB DDR5 ECC RAM, local NVMe, 2.5 Gbit/s Traffic Flatrate) costs €15.22/month net effective with the 2-months-free voucher (6874nc), replacing €165/month Microsoft 365 / Dropbox fees under 100% German/Austrian GDPR sovereignty.
Deploying the ultimate Homelab Starter Stack—Vaultwarden password vault, Caddy 2 auto-HTTPS, Uptime Kuma status alerts, Beszel telemetry, and CrowdSec IPS—on Netcup VPS 1000 G12.5 (4 vCores, 8 GB RAM, 2.5 Gbit/s Traffic Flatrate) costs just €11.17/month net effective (€13.29 gross; €12.18/mo regular 12M net, €10.35/mo on 24M) with the 1-month-free voucher, or €1.85/month net (€1.43/mo net eff. w/ 36nc) on VPS pico G11.5s, saving €454/year over €49/month SaaS tools.
Frequently Asked Questions
Can Immich run on a 4 GB Netcup VPS 500 or RS 500 without crashing?
Only if you disable immich-machine-learning (smart CLIP search and facial recognition) or run the ML container remotely on your desktop PC GPU over Tailscale (http://100.x.y.z:3003). To run full on-server CLIP + InsightFace cleanly without swap thrashing, choose an 8 GB model (VPS 1000 G12.5 at €11.17/mo net eff. or RS 1000 G12.5 at €15.22/mo net eff.).
Why did my Immich upgrade fail after PostgreSQL switched from pgvecto.rs to VectorChord?
Immich migrated to ghcr.io/immich-app/postgres:16-vectorchord... for faster, crash-safe vector indexing. Always read the GitHub release notes for breaking changes before updating IMMICH_VERSION, keep shm_size: 256mb set on the database container, and never swap the official Immich Postgres image for vanilla postgres:16.
Can I point Immich at an existing folder of organized family photos without duplicating files?
Yes! Mount your existing photo directory into immich-server as read-only (- /mnt/photos:/mnt/media/family:ro) and register /mnt/media/family as an External Library in Immich Administration. Immich indexes thumbnails, EXIF, faces, and CLIP search without altering your folder hierarchy.
How do I secure Immich if I do not want the login page exposed to the public internet?
Install Tailscale or WireGuard on your Netcup Root Server and family smartphones, then bind Caddy/Immich exclusively to your Tailscale 100.x.y.z interface. The official Immich mobile app supports automatic URL switching between home Wi-Fi/VPN and public HTTPS endpoints.