Saltar a contenido

Immich

Backup y gestión de fotos/videos auto-hospedado, alternativa a Google Photos. Stack completo con servidor, ML, PostgreSQL y Redis.

📁 Rutas y configs

Qué Dónde
Compose /opt/docker/immich/docker-compose.yml
Variables de entorno /opt/docker/immich/.env
Upload location /mnt/hdd_2tb/immich_data/
DB data /opt/docker/immich/postgres/

Contenedores: immich_server, immich_machine_learning, immich_redis, immich_postgres Puerto: 8503

Compose

name: immich
services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    volumes:
      - ${UPLOAD_LOCATION}:/data
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    ports:
      - 8503:2283
    depends_on:
      - redis
      - database
    restart: always

  immich-machine-learning:
    container_name: immich_machine_learning
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    volumes:
      - model-cache:/cache
    env_file:
      - .env
    restart: always

  redis:
    container_name: immich_redis
    image: docker.io/valkey/valkey:9
    restart: always

  database:
    container_name: immich_postgres
    image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_INITDB_ARGS: --data-checksums
    volumes:
      - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
    shm_size: 128mb
    restart: always

volumes:
  model-cache: null
networks: {}