Guest User

Untitled

a guest
May 22nd, 2025
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 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. devices:
  17. - /dev/dri:/dev/dri
  18. volumes:
  19. # 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
  20. - ${UPLOAD_LOCATION}:/usr/src/app/upload
  21. - "/volume1/backup/Mina Bilder/:/pictures/"
  22. - "/volume1/backup/Canon HV20/:/videos/"
  23. - /etc/localtime:/etc/localtime:ro
  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. # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
  41. # file: hwaccel.ml.yml
  42. # service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable
  43. volumes:
  44. - model-cache:/cache
  45. env_file:
  46. - .env
  47. restart: always
  48. healthcheck:
  49. disable: false
  50.  
  51. redis:
  52. container_name: immich_redis
  53. image: docker.io/valkey/valkey:8-bookworm@sha256:42cba146593a5ea9a622002c1b7cba5da7be248650cbb64ecb9c6c33d29794b1
  54. healthcheck:
  55. test: redis-cli ping || exit 1
  56. restart: always
  57.  
  58. database:
  59. container_name: immich_postgres
  60. image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:739cdd626151ff1f796dc95a6591b55a714f341c737e27f045019ceabf8e8c52
  61. environment:
  62. POSTGRES_PASSWORD: ${DB_PASSWORD}
  63. POSTGRES_USER: ${DB_USERNAME}
  64. POSTGRES_DB: ${DB_DATABASE_NAME}
  65. POSTGRES_INITDB_ARGS: '--data-checksums'
  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. healthcheck:
  70. test: >-
  71. 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
  72. interval: 5m
  73. #start_interval: 30s
  74. start_period: 5m
  75. command: >-
  76. 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
  77. restart: always
  78.  
  79. volumes:
  80. model-cache:
  81.  
Tags: immich
Advertisement
Add Comment
Please, Sign In to add comment