nick0

Immich compose file

Sep 30th, 2025
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 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 file
  21. - ${UPLOAD_LOCATION}:/data
  22. - /etc/localtime:/etc/localtime:ro
  23. ports:
  24. - '2283:2283'
  25. depends_on:
  26. - redis
  27. - database
  28. restart: always
  29. healthcheck:
  30. disable: false
  31.  
  32. immich-machine-learning:
  33. container_name: immich_machine_learning
  34. # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag.
  35. # Example tag: ${IMMICH_VERSION:-release}-cuda
  36. image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
  37. # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
  38. # file: hwaccel.ml.yml
  39. # service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable
  40. volumes:
  41. - model-cache:/cache
  42. restart: always
  43. healthcheck:
  44. disable: false
  45.  
  46. redis:
  47. container_name: immich_redis
  48. image: docker.io/valkey/valkey:8-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571
  49. healthcheck:
  50. test: redis-cli ping || exit 1
  51. restart: always
  52.  
  53. database:
  54. container_name: immich_postgres
  55. image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:41eacbe83eca995561fe43814fd4891e16e39632806253848efaf04d3c8a8b84
  56. environment:
  57. POSTGRES_PASSWORD: ${DB_PASSWORD}
  58. POSTGRES_USER: ${DB_USERNAME}
  59. POSTGRES_DB: ${DB_DATABASE_NAME}
  60. UPLOAD_LOCATION: ${UPLOAD_LOCATION}
  61. DATABASE_LOCATION: ${DB_DATA_LOCATION}
  62. TIMEZONE: ${TZ}
  63. POSTGRES_INITDB_ARGS: '--data-checksums'
  64. # Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
  65. # DB_STORAGE_TYPE: 'HDD'
  66. volumes:
  67. # 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
  68. - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
  69. shm_size: 128mb
  70. restart: always
  71.  
  72. volumes:
  73. model-cache:
Advertisement
Add Comment
Please, Sign In to add comment