Guest User

Untitled

a guest
Jun 9th, 2025
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. #
  2. # WARNING: To install Immich, follow our guide: https://immich.app/docs/install/docker-compose
  3. #
  4. # Make sure to use the docker-compose.yml of the current release:
  5. #
  6. # https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
  7. #
  8. # The compose file on main may not be compatible with the latest release.
  9.  
  10. name: immich
  11.  
  12. services:
  13. immich-server:
  14. container_name: immich_server
  15. image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
  16. # extends:
  17. # file: hwaccel.transcoding.yml
  18. # service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
  19. volumes:
  20. # 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 fi
  21. - ${UPLOAD_LOCATION}:/usr/src/app/upload
  22. - /etc/localtime:/etc/localtime:ro
  23. env_file:
  24. - .env
  25. ports:
  26. - '2283:2283'
  27. depends_on:
  28. - redis
  29. - database
  30. restart: always
  31. healthcheck:
  32. disable: false
  33.  
  34. immich-machine-learning:
  35. container_name: immich_machine_learning
  36. # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag.
  37. # Example tag: ${IMMICH_VERSION:-release}-cuda
  38. image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
  39. # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
  40. # file: hwaccel.ml.yml
  41. # service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 w
  42. volumes:
  43. - model-cache:/cache
  44. env_file:
  45. - .env
  46. restart: always
  47. healthcheck:
  48. disable: false
  49.  
  50. redis:
  51. container_name: immich_redis
  52. image: docker.io/valkey/valkey:8-bookworm@sha256:ff21bc0f8194dc9c105b769aeabf9585fea6a8ed649c0781caeac5cb3c247884
  53. healthcheck:
  54. test: redis-cli ping || exit 1
  55. restart: always
  56.  
  57. database:
  58. container_name: immich_postgres
  59. image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0@sha256:fa4f6e0971f454cd95fec5a9aaed2ed93d8f46725cc6bc61e0698e97dba96da1
  60. environment:
  61. POSTGRES_PASSWORD: ${DB_PASSWORD}
  62. POSTGRES_USER: ${DB_USERNAME}
  63. POSTGRES_DB: ${DB_DATABASE_NAME}
  64. POSTGRES_INITDB_ARGS: '--data-checksums'
  65. # Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
  66. # DB_STORAGE_TYPE: 'HDD'
  67. volumes:
  68. # 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 .en
  69. - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
  70. restart: always
  71.  
  72. volumes:
  73. model-cache:
Advertisement
Add Comment
Please, Sign In to add comment