SH SelfHostAlt
Sponsored Self-host any open-source app on Hostinger KVM VPS from $4.99/mo (1-Click Docker) →
Immich logo

Immich

AGPL-3.0 Docker Ready ★ 120,331 Stars Active · 2026-11-28

Photo and video backup solution directly from your mobile phone (alternative to Google Photos). , Source Code).

Category
Photo Galleries
Tech Stack / Runtime
Docker · TypeScript
Open-Source License
AGPL-3.0
GitHub Health
★ 120,331 · 7,712 forks
#backup-tool#mobile-app#photo-gallery#photos#self-hosted
Official docker/docker-compose.yml

Quick Docker Compose Reference for Immich

#
# WARNING: To install Immich, follow our guide: https://docs.immich.app/install/docker-compose
#
# Make sure to use the docker-compose.yml of the current release:
#
# https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
#
# The compose file on main may not be compatible with the latest release.

name: immich

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    # extends:
    #   file: hwaccel.transcoding.yml
    #   service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
    volumes:
      # Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
      - ${UPLOAD_LOCATION}:/data
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    ports:
      - '2283:2283'
    depends_on:
      - redis
      - database
    restart: always
    healthcheck:
      disable: false

  immich-machine-learning:
    container_name: immich_machine_learning
    # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag.
    # Example tag: ${IMMICH_VERSION:-release}-cuda
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    # extends: # uncomment this section for hardware acceleration - see https://docs.immich.app/features/ml-hardware-acceleration
    #   file: hwaccel.ml.yml
    #   service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable
    volumes:
      - model-cache:/cache
    env_file:
      - .env
    environment:
      MACHINE_LEARNING_MODEL_REVISION: v2
    restart: always
    healthcheck:
      disable: false

  redis:
    container_name: immich_redis
    image: docker.io/valkey/valkey:9@sha256:3add1a336a920ea54770a001ab6feb3da5fceea96a40373a3a2cd469b815f0b7
    healthcheck:
      test: redis-cli ping | grep -q PONG || exit 1
    restart: always

  database:
    container_name: immich_postgres
    image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_INITDB_ARGS: '--data-checksums'
      # Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
      # DB_STORAGE_TYPE: 'HDD'
    volumes:
      # Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
      - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
    shm_size: 128mb
    restart: always
    healthcheck:
      disable: false

volumes:
  model-cache:

Immich System Requirements & Self-Hosting Guide

Deploy Immich (4 GB+ RAM) →

Recommended VPS

4 GB+ RAM

2 – 4 vCPU · $6 – $12/mo VPS

Deployment Method

Intermediate

Docker / Docker Compose (Recommended)

Commercial Use (AGPL-3.0)

Yes for internal team self-hosting; modified SaaS redistribution requires sharing changes.

Maintenance Status

Active

Last commit: 2026-11-28

Frequently Asked Questions about Immich

Is Immich free to self-host for commercial use?

Immich is released under the AGPL-3.0 license. Yes for internal team self-hosting; modified SaaS redistribution requires sharing changes. It has 120,331 GitHub stars and was last updated on 2026-11-28.

What VPS specifications do I need to self-host Immich?

Based on its Docker runtime and Photo Galleries workload, we recommend at least 4 GB+ RAM and 2 – 4 vCPU (typically $6 – $12/mo VPS).

Does Immich support Docker deployment?

Yes — Immich supports Docker / Docker Compose (Recommended), making it intermediate to spin up on any Linux VPS.

More Open-Source Photo Galleries

View all →
★ 40.5k Docker

Personal photo management powered by Go and Google TensorFlow. Browse, organize, and share your personal photo collection, using the latest technologies to automatically tag and find pictures. , Source Code.

Replaces: Google Photos
AGPL-3.0 Go/Docker
Details →
★ 30.6k Docker

End-to-end encrypted photo-sharing platform (alternative to Google Photos, Apple Photos). ).

Replaces: Google Photos
AGPL-3.0 Docker/Nodejs/Go
Details →
★ 10.5k Docker

Smart imaging service and enables on-demand cropping, resizing, applying filters and optimizing images. .

MIT Python/Docker
Details →
★ 8.2k Docker

Photo management service with a slight focus on cool graphs (alternative to Google Photos). ).

Replaces: Google Photos
MIT Python/Docker
Details →
★ 6.6k Docker

Simple and user-friendly photo gallery for personal servers. It is made for photographers and aims to provide an easy and fast way to navigate directories, with thousands of high resolution photos. , Source Code.

GPL-3.0 Go/Docker
Details →
★ 4.3k Docker

Grid and album based photo-management-system. .

Replaces: Google Photos Imgur
MIT PHP/Docker
Details →