Guest User

immich env compose

a guest
May 16th, 2024
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.37 KB | None | 0 0
  1. ***
  2. docker-compose.yml
  3. ***
  4.  
  5. #
  6. # WARNING: Make sure to use the docker-compose.yml of the current release:
  7. #
  8. # https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
  9. #
  10. # The compose file on main may not be compatible with the latest release.
  11. #
  12.  
  13. name: immich
  14.  
  15. services:
  16. immich-server:
  17. container_name: immich_server
  18. image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
  19. command: ['start.sh', 'immich']
  20. volumes:
  21. - ${UPLOAD_LOCATION}:/usr/src/app/upload
  22. - /etc/localtime:/etc/localtime:ro
  23. env_file:
  24. - .env
  25. ports:
  26. - 2283:3001
  27. depends_on:
  28. - redis
  29. - database
  30. restart: always
  31.  
  32. immich-microservices:
  33. container_name: immich_microservices
  34. image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
  35. # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/hardware-transcoding
  36. # file: hwaccel.transcoding.yml
  37. # service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
  38. command: ['start.sh', 'microservices']
  39. volumes:
  40. - ${UPLOAD_LOCATION}:/usr/src/app/upload
  41. - /etc/localtime:/etc/localtime:ro
  42. env_file:
  43. - .env
  44. depends_on:
  45. - redis
  46. - database
  47. restart: always
  48.  
  49. immich-machine-learning:
  50. container_name: immich_machine_learning
  51. # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
  52. # Example tag: ${IMMICH_VERSION:-release}-cuda
  53. image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
  54. # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
  55. # file: hwaccel.ml.yml
  56. # service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
  57. volumes:
  58. - model-cache:/cache
  59. env_file:
  60. - .env
  61. restart: always
  62.  
  63. redis:
  64. container_name: immich_redis
  65. image: registry.hub.docker.com/library/redis:6.2-alpine@sha256:84882e87b54734154586e5f8abd4dce69fe7311315e2fc6d67c29614c8de2672
  66. restart: always
  67.  
  68. database:
  69. container_name: immich_postgres
  70. image: registry.hub.docker.com/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
  71. environment:
  72. POSTGRES_PASSWORD: ${DB_PASSWORD}
  73. POSTGRES_USER: ${DB_USERNAME}
  74. POSTGRES_DB: ${DB_DATABASE_NAME}
  75. volumes:
  76. - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
  77. restart: always
  78.  
  79. volumes:
  80. model-cache:
  81.  
  82. ***
  83. .env
  84. ***
  85.  
  86. # You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables
  87.  
  88. # The location where your uploaded files are stored
  89. UPLOAD_LOCATION=/media/Photos/ImmichPhotos/
  90. # The location where your database files are stored
  91. DB_DATA_LOCATION=./postgres
  92.  
  93. # The Immich version to use. You can pin this to a specific version like "v1.71.0"
  94. IMMICH_VERSION=release
  95.  
  96. # Connection secret for postgres. You should change it to a random password
  97. DB_PASSWORD=XXXXXXXXXX
  98.  
  99. # The values below this line do not need to be changed
  100. ###################################################################################
  101. DB_USERNAME=XXXXXXXXXX
  102. DB_DATABASE_NAME=immich
  103.  
  104.  
  105.  
Advertisement
Add Comment
Please, Sign In to add comment