Guest User

Untitled

a guest
Dec 7th, 2025
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. #
  2. # WARNING: To install Immich, follow our guide: https://docs.immich.app/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 file
  21. - ${UPLOAD_LOCATION}:/data
  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://docs.immich.app/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 where applicable
  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@sha256:81db6d39e1bba3b3ff32bd3a1b19a6d69690f94a3954ec131277b9a26b95b3aa
  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.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23
  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 .env file
  69. - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
  70. shm_size: 128mb
  71. restart: always
  72.  
  73. volumes:
  74. model-cache:
Advertisement
Add Comment
Please, Sign In to add comment