Advertisement
Guest User

Untitled

a guest
May 15th, 2025
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 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. cpus: "0.5"
  17. # extends:
  18. # file: hwaccel.transcoding.yml
  19. # service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
  20. volumes:
  21. # 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
  22. - ${UPLOAD_LOCATION}:/usr/src/app/upload
  23. - /mnt/image/Sena-Immich:/mnt/image/Sena-Immich
  24. env_file:
  25. - .env
  26. ports:
  27. - '2283:2283'
  28. depends_on:
  29. - redis
  30. - database
  31. restart: always
  32. healthcheck:
  33. disable: false
  34.  
  35. immich-machine-learning:
  36. container_name: immich_machine_learning
  37. # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag.
  38. # Example tag: ${IMMICH_VERSION:-release}-cuda
  39. image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
  40. cpus: "0.5"
  41. # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
  42. # file: hwaccel.ml.yml
  43. # service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable
  44. volumes:
  45. - model-cache:/cache
  46. env_file:
  47. - .env
  48. restart: always
  49. healthcheck:
  50. disable: false
  51.  
  52. redis:
  53. container_name: immich_redis
  54. image: docker.io/valkey/valkey:8-bookworm@sha256:42cba146593a5ea9a622002c1b7cba5da7be248650cbb64ecb9c6c33d29794b1
  55. cpus: "0.5"
  56. healthcheck:
  57. test: redis-cli ping || exit 1
  58. restart: always
  59.  
  60. database:
  61. container_name: immich_postgres
  62. image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:739cdd626151ff1f796dc95a6591b55a714f341c737e27f045019ceabf8e8c52
  63. cpus: "0.5"
  64. environment:
  65. POSTGRES_PASSWORD: ${DB_PASSWORD}
  66. POSTGRES_USER: ${DB_USERNAME}
  67. POSTGRES_DB: ${DB_DATABASE_NAME}
  68. POSTGRES_INITDB_ARGS: '--data-checksums'
  69. volumes:
  70. # 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
  71. - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
  72. healthcheck:
  73. test: >-
  74. pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1; Chksum="$$(psql --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" --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
  75. interval: 5m
  76. start_interval: 30s
  77. start_period: 5m
  78. command: >-
  79. postgres -c shared_preload_libraries=vectors.so -c 'search_path="$$user", public, vectors' -c logging_collector=on -c max_wal_size=2GB -c shared_buffers=512MB -c wal_compression=on
  80. restart: always
  81.  
  82. volumes:
  83. model-cache:
  84.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement