deploy.ccSelf-hosting deploy handbook

Immich deployment: Docker Compose + reverse proxy

High-performance self-hosted photo and video backup (Google Photos alternative) with mobile apps and ML search.

In short: High-performance self-hosted photo and video backup (Google Photos alternative) with mobile apps and ML search. A multi-service stack: this page shows the official install commands.

Server
Official: RAM min 6GB (8GB recommended); CPU min 2 cores (4 recommended). 4GB works with ML disabled; our generic suggestion: 4 vCPU / 8 GB RAM and up
Ports
2283 (Web / API)
Install
Official steps
Official source
docs.immich.app/install/docker-compose
Last verified
2026-11-13 · Official method
Cloud storage & filesOfficial methodWebSocket4 vCPU / 8 GB RAM and up

Overview & official links

About
High-performance self-hosted photo and video backup (Google Photos alternative) with mobile apps and ML search.
Repository
github.com/immich-app/immich
Docs
docs.immich.app
Deploy source
docs.immich.app/install/docker-compose checked 2026-11-13
Verification
Official method Complex stack: we show the official commands as-is, not modified or run by us
Ports
2283 Web / API

Server requirements

Official requirements

RAM min 6GB (8GB recommended); CPU min 2 cores (4 recommended). 4GB works with ML disabled. — source

Suggested VPS size

4 vCPU / 8 GB RAM and up, Debian 12 / Ubuntu 24.04 with Docker.
Generic suggestion, not official.

VPS recommendation slot (reserved, inactive)

Install (official steps)

This app is a multi-service stack, so we do not ship our own compose or script; the commands below are taken from the official docs — follow the latest official docs. Official source
bash
mkdir -p /opt/immich && cd /opt/immich
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
sed -i "s/^DB_PASSWORD=.*/DB_PASSWORD=$(openssl rand -hex 16)/" .env
docker compose up -d
  • Use the compose file from the current release, not from main.
  • Change DB_PASSWORD in example.env (letters and digits only).

Reverse proxy & HTTPS

The app listens on 127.0.0.1:2283; expose it with Nginx or Caddy over HTTPS. This app needs WebSocket; the config handles the Upgrade header. For rate limiting, caching and more, use the nginx.cc generator.

/etc/nginx/conf.d/immich.confNginx
# Immich 反向代理 / reverse proxy — generated by deploy.cc
# 把 example.com 换成你的域名,证书路径按实际修改(certbot / acme.sh 签发)。
# Replace example.com and the certificate paths. More options: https://nginx.cc/zh/gen
# 放到 /etc/nginx/conf.d/<name>.conf,然后 nginx -t && systemctl reload nginx

map $http_upgrade $connection_upgrade_immich {
    default upgrade;
    ''      close;
}

server {
    listen 80;
    listen [::]:80;
    server_name example.com;

    location /.well-known/acme-challenge/ {
        root /var/www/html;
    }

    location / {
        return 301 https://$host$request_uri;
    }
}

server {
    listen 443 ssl;
    listen [::]:443 ssl;
    http2 on;  # nginx < 1.25.1: 删除此行,改为 listen 443 ssl http2;
    server_name example.com;

    ssl_certificate     /etc/letsencrypt/live/example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
    ssl_protocols TLSv1.2 TLSv1.3;

    client_max_body_size 50000M;

    location / {
        proxy_pass http://127.0.0.1:2283;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade_immich;
        proxy_read_timeout 3600s;
    }
}

Or Caddy (automatic certificates)

/etc/caddy/CaddyfileCaddy
# Immich — Caddyfile (deploy.cc). Caddy 会自动申请 HTTPS 证书 / automatic HTTPS
example.com {
    reverse_proxy 127.0.0.1:2283
}

Update, backup & uninstall

Update (official)source
cd /opt/immich && docker compose pull && docker compose up -d   # 先读官方版本说明,有破坏性变更时按说明操作

For backup and removal follow the official docs; volume locations depend on the official compose.

FAQ

What is Immich?

High-performance self-hosted photo and video backup (Google Photos alternative) with mobile apps and ML search. Repository: https://github.com/immich-app/immich

What server do I need for Immich?

Official: RAM min 6GB (8GB recommended); CPU min 2 cores (4 recommended). 4GB works with ML disabled; our generic suggestion: 4 vCPU / 8 GB RAM and up (source: https://docs.immich.app/install/requirements)

Which ports does Immich use?

2283 (Web / API)

How do I update Immich?

cd /opt/immich && docker compose pull && docker compose up -d # 先读官方版本说明,有破坏性变更时按说明操作. Back up and read the release notes before major upgrades.

Plain-text version (for copying or AI tools): /en/apps/immich.md

Related apps