Guest User

Untitled

a guest
Sep 2nd, 2025
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.67 KB | None | 0 0
  1. docker-compose
  2. ```
  3. services:
  4. immich-server:
  5. container_name: immich_server
  6. image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
  7. # extends:
  8. # file: hwaccel.transcoding.yml
  9. # service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
  10. volumes:
  11. # 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
  12. - ${UPLOAD_LOCATION}:/data
  13. - /media/oem/Media/Pictures:/mnt/media/pictures:ro
  14. - /etc/localtime:/etc/localtime:ro
  15. env_file:
  16. - .env
  17. ports:
  18. - '2283:2283'
  19. depends_on:
  20. - redis
  21. - database
  22. restart: always
  23. healthcheck:
  24. disable: false
  25. mem_limit: 16G
  26.  
  27. immich-machine-learning:
  28. container_name: immich_machine_learning
  29. # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag.
  30. # Example tag: ${IMMICH_VERSION:-release}-cuda
  31. image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
  32. # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
  33. # file: hwaccel.ml.yml
  34. # service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable
  35. volumes:
  36. - model-cache:/cache
  37. env_file:
  38. - .env
  39. restart: always
  40. healthcheck:
  41. disable: false
  42. mem_limit: 16G
  43.  
  44. redis:
  45. container_name: immich_redis
  46. image: docker.io/valkey/valkey:8-bookworm@sha256:a137a2b60aca1a75130022d6bb96af423fefae4eb55faf395732db3544803280
  47. healthcheck:
  48. test: redis-cli ping || exit 1
  49. restart: always
  50. mem_limit: 16G
  51.  
  52. database:
  53. container_name: immich_postgres
  54. image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:32324a2f41df5de9efe1af166b7008c3f55646f8d0e00d9550c16c9822366b4a
  55. environment:
  56. POSTGRES_PASSWORD: ${DB_PASSWORD}
  57. POSTGRES_USER: ${DB_USERNAME}
  58. POSTGRES_DB: ${DB_DATABASE_NAME}
  59. POSTGRES_INITDB_ARGS: '--data-checksums'
  60. # Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
  61. # DB_STORAGE_TYPE: 'HDD'
  62. volumes:
  63. # 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
  64. - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
  65. shm_size: 128mb
  66. restart: always
  67. mem_limit: 16G
  68.  
  69. volumes:
  70. model-cache:
  71. ```
  72.  
  73. env file
  74. ```
  75. # You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables
  76.  
  77. # The location where your uploaded files are stored
  78. UPLOAD_LOCATION=/media/oem/Media/Immich/
  79.  
  80. # The location where your database files are stored. Network shares are not supported for the database
  81. DB_DATA_LOCATION=/home/oem/Everything/Docker/Immich/postgres
  82.  
  83. # To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
  84. # TZ=Etc/UTC
  85.  
  86. # The Immich version to use. You can pin this to a specific version like "v1.71.0"
  87. IMMICH_VERSION=release
  88.  
  89. # Connection secret for postgres. You should change it to a random password
  90. # Please use only the characters `A-Za-z0-9`, without special characters or spaces
  91. DB_PASSWORD=postgres
  92.  
  93. # The values below this line do not need to be changed
  94. ###################################################################################
  95. DB_USERNAME=postgres
  96. DB_DATABASE_NAME=immich
  97. ```
Advertisement
Add Comment
Please, Sign In to add comment