惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
Check Point Blog
Y
Y Combinator Blog
GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
Martin Fowler
Martin Fowler
博客园_首页
大猫的无限游戏
大猫的无限游戏
美团技术团队
S
SegmentFault 最新的问题
T
The Blog of Author Tim Ferriss
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
MyScale Blog
MyScale Blog
小众软件
小众软件
Vercel News
Vercel News
阮一峰的网络日志
阮一峰的网络日志
N
Netflix TechBlog - Medium
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
量子位
博客园 - 【当耐特】
J
Java Code Geeks
F
Fortinet All Blogs
宝玉的分享
宝玉的分享
Stack Overflow Blog
Stack Overflow Blog
博客园 - 司徒正美

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Deploying Immich, an Open-Source Alternative to Google Ph...
Sanskriti Harmukh · 2026-06-17 · via DEV Community

Immich is an open-source photo and video management platform — a self-hosted alternative to Google Photos — with native mobile apps, machine-learning search, and automatic backup. This guide deploys Immich using Docker Compose, fronts it with Nginx, and secures it with a Let's Encrypt TLS certificate. By the end, you'll have Immich syncing photos and videos securely at your domain.


Set Up the Directory Structure

1. Create the project directory:

$ mkdir ~/immich
$ cd ~/immich

2. Download the official .env template:

$ wget -O .env https://github.com/immich-app/immich/releases/latest/download/example.env

3. Edit the environment file:

$ nano .env

Uncomment and set the timezone, plus customize secrets:

TZ=Europe/London

Key variables in the file:

  • UPLOAD_LOCATION — where uploaded media is stored
  • DB_DATA_LOCATION — PostgreSQL data path
  • IMMICH_VERSION — Immich release tag
  • DB_PASSWORD, DB_USERNAME, DB_DATABASE_NAME — database credentials

Deploy with Docker Compose

1. Download the official Compose manifest:

$ wget https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml

This brings up three services: immich-server, postgres, and valkey for cache/queues.

2. Add your user to the Docker group:

$ sudo usermod -aG docker $USER
$ newgrp docker

3. Start the stack:

$ docker compose up -d

4. Verify the services are running and the API responds:

$ docker compose ps
$ curl -X GET 127.0.0.1:2283


Front Immich with Nginx

1. Install and enable Nginx:

$ sudo apt update
$ sudo apt install nginx -y
$ sudo systemctl enable nginx

2. Remove the default site:

$ sudo rm /etc/nginx/sites-enabled/default

3. Create the Immich virtual host:

$ sudo nano /etc/nginx/sites-available/immich.conf

server {
    listen 80;
    server_name immich.example.com;

    location / {
        client_max_body_size 10M;
        proxy_pass http://127.0.0.1:2283;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        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;
    }
}

4. Enable the site and reload:

$ sudo ln -s /etc/nginx/sites-available/immich.conf /etc/nginx/sites-enabled/
$ sudo nginx -t
$ sudo systemctl restart nginx

5. Open the firewall:

$ sudo ufw allow 80/tcp
$ sudo ufw allow 443/tcp
$ sudo ufw reload


Issue a Let's Encrypt Certificate

$ sudo apt install certbot python3-certbot-nginx -y
$ sudo certbot --nginx -d immich.example.com -m admin@example.com --non-interactive

Certbot edits the Nginx config in place and enables auto-renewal.


Access and Configure Immich

  1. Open https://immich.example.com and click Getting Started.
  2. Create the admin account with email, password, and display name.
  3. Sign in and walk through the initial settings: theme, language, privacy, storage template, backup strategy.
  4. Click Upload to add a batch of photos. They appear under Photos once processed.

Add team members from Administration → Users with per-user storage quotas.


Next Steps

Immich is running and served securely over HTTPS. From here you can:

  • Install the iOS / Android app and point it at your domain for automatic phone backup
  • Enable machine-learning search and face recognition for richer organisation
  • Move UPLOAD_LOCATION to Vultr Block Storage to scale beyond the host disk

For the full guide with additional tips, visit the original article on Vultr Docs.