Advertisement
Guest User

immich compose.yaml

a guest
Apr 19th, 2025
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.00 KB | None | 0 0
  1. # WARNING: Make sure to use the docker-compose.yml of the current release:
  2. # https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
  3. # The compose file on main may not be compatible with the latest release.
  4.  
  5. name: immich
  6.  
  7. services:
  8. immich-server:
  9. container_name: immich-server
  10. image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
  11. # extends:
  12. # file: hwaccel.transcoding.yml
  13. # service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
  14. volumes:
  15. # 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
  16. - ${UPLOAD_LOCATION}:/usr/src/app/upload
  17. - /etc/localtime:/etc/localtime:ro
  18. - immich-external-vol:/mnt/media/external/ # External library
  19. env_file:
  20. - .env
  21. ports:
  22. - '2283:2283'
  23. depends_on:
  24. - immich-redis
  25. - immich-database
  26. restart: unless-stopped
  27. healthcheck:
  28. disable: false
  29.  
  30. immich-machine-learning:
  31. container_name: immich-machine-learning
  32. # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
  33. # Example tag: ${IMMICH_VERSION:-release}-cuda
  34. image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
  35. # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
  36. # file: hwaccel.ml.yml
  37. # service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
  38. volumes:
  39. - model-cache:/cache
  40. env_file:
  41. - .env
  42. restart: unless-stopped
  43. healthcheck:
  44. disable: false
  45.  
  46. immich-redis:
  47. container_name: immich-redis
  48. image: docker.io/redis:6.2-alpine@sha256:2ba50e1ac3a0ea17b736ce9db2b0a9f6f8b85d4c27d5f5accc6a416d8f42c6d5
  49. healthcheck:
  50. test: redis-cli ping || exit 1
  51. restart: unless-stopped
  52.  
  53. immich-database:
  54. container_name: immich-postgres
  55. image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
  56. environment:
  57. POSTGRES_PASSWORD: ${DB_PASSWORD}
  58. POSTGRES_USER: ${DB_USERNAME}
  59. POSTGRES_DB: ${DB_DATABASE_NAME}
  60. POSTGRES_INITDB_ARGS: '--data-checksums'
  61. volumes:
  62. # 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
  63. - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
  64. healthcheck:
  65. test: pg_isready --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' || exit 1; Chksum="$$(psql --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1
  66. interval: 5m
  67. start_interval: 30s
  68. start_period: 5m
  69. command:
  70. [
  71. 'postgres',
  72. '-c',
  73. 'shared_preload_libraries=vectors.so',
  74. '-c',
  75. 'search_path="$$user", public, vectors',
  76. '-c',
  77. 'logging_collector=on',
  78. '-c',
  79. 'max_wal_size=2GB',
  80. '-c',
  81. 'shared_buffers=512MB',
  82. '-c',
  83. 'wal_compression=on',
  84. ]
  85. restart: unless-stopped
  86.  
  87. # Custom app
  88. # immich-power-tools:
  89. # container_name: immich-power-tools
  90. # image: "ghcr.io/varun-raj/immich-power-tools:latest"
  91. # ports:
  92. # - "2284:3000"
  93. # env_file:
  94. # - ".env"
  95.  
  96. volumes:
  97. model-cache:
  98. immich-library-vol:
  99. driver_opts:
  100. type: "nfs"
  101. o: "addr=nas,lock,soft,retry=10,timeo=120,nfsvers=4"
  102. device: ":/volume1/ServerData/immich/library/"
  103. immich-external-vol:
  104. driver_opts:
  105. type: "nfs"
  106. o: "addr=nas,lock,soft,retry=10,timeo=120,nfsvers=4"
  107. device: ":/volume1/ServerData/immich/external/"
  108.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement