# docker-compose.yml # 注意文件可能有更新,请以官方为准 # 这里添加了使用 daocloud 加速镜像 添加了核显转码 # 主要关注有注释的部分 # # WARNING: 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
immich-microservices: container_name:immich_microservices image:m.daocloud.io/ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/hardware-transcoding # file: hwaccel.transcoding.yml # service: quicksync # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding devices: -/dev/dri:/dev/dri# 启用 cpu 核显加速,不同设备可能不同,详见上面注释种文档介绍 command: ['start.sh', 'microservices'] volumes: -${UPLOAD_LOCATION}:/usr/src/app/upload -/etc/localtime:/etc/localtime:ro env_file: -.env depends_on: -redis -database restart:always
immich-machine-learning: container_name:immich_machine_learning # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag. # Example tag: ${IMMICH_VERSION:-release}-cuda image:m.daocloud.io/ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} # GPU硬件加速 参考下面文档 # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration # file: hwaccel.ml.yml # service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable volumes: -model-cache:/cache env_file: -.env restart:always
# .env 记得修改密码 # You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables
# The location where your uploaded files are stored UPLOAD_LOCATION=./library # The location where your database files are stored DB_DATA_LOCATION=./postgres
# The Immich version to use. You can pin this to a specific version like "v1.71.0" IMMICH_VERSION=release
# Connection secret for postgres. You should change it to a random password DB_PASSWORD=password# 记得修改密码
# The values below this line do not need to be changed ################################################################################### DB_USERNAME=postgres DB_DATABASE_NAME=immich