services: immich-server: image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} container_name: immich-server restart: unless-stopped depends_on: - redis - database environment: - TZ=${TZ:-Europe/Berlin} - DB_HOSTNAME=database - DB_USERNAME=${DB_USERNAME:-postgres} - DB_PASSWORD=${DB_PASSWORD:-postgres} - DB_DATABASE_NAME=${DB_DATABASE_NAME:-immich} - REDIS_HOSTNAME=redis ports: - "${HTTP_PORT:-2283}:2283" volumes: - ${UPLOAD_LOCATION:-/srv/immich/library}:/data - /etc/localtime:/etc/localtime:ro # Uncomment for Intel/AMD hardware transcoding: # devices: # - /dev/dri:/dev/dri immich-machine-learning: # Add -cuda / -openvino / -rocm to the tag for accelerated inference. image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} container_name: immich-machine-learning restart: unless-stopped volumes: - ${DATA_PATH:-/srv/immich}/model-cache:/cache redis: image: valkey/valkey:8-alpine container_name: immich-redis restart: unless-stopped healthcheck: test: redis-cli ping | grep -q PONG || exit 1 database: image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0 container_name: immich-postgres restart: unless-stopped shm_size: 128mb environment: - POSTGRES_USER=${DB_USERNAME:-postgres} - POSTGRES_PASSWORD=${DB_PASSWORD:-postgres} - POSTGRES_DB=${DB_DATABASE_NAME:-immich} - POSTGRES_INITDB_ARGS=--data-checksums volumes: - ${DB_DATA_LOCATION:-/srv/immich/postgres}:/var/lib/postgresql/data