Advertisement
Guest User

Untitled

a guest
Dec 21st, 2024
5
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.46 KB | None | 0 0
  1.  
  2. ``` #
  3. # WARNING: Make sure to use the docker-compose.yml of the current release:
  4. #
  5. # https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
  6. #
  7. # The compose file on main may not be compatible with the latest release.
  8. #
  9.  
  10. name: immich
  11.  
  12. services:
  13. immich-server:
  14. container_name: immich_server
  15. user: "1000:1000"
  16. image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
  17. extends:
  18. file: hwaccel.transcoding.yml
  19. service: quicksync # 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. - /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. user: "1000:1000"
  38. # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
  39. # Example tag: ${IMMICH_VERSION:-release}-cuda
  40. image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
  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, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
  44. volumes:
  45. - /data/appdb/immichdb/ml-cache:/cache
  46. - /data/appdb/immichdb/ml-config:/.config
  47. env_file:
  48. - .env
  49. restart: always
  50. healthcheck:
  51. disable: false
  52.  
  53. redis:
  54. container_name: immich_redis
  55. user: "1000:1000"
  56. volumes:
  57. - /data/appdb/immichdb/redis-data:/data
  58. image: docker.io/redis:6.2-alpine@sha256:eaba718fecd1196d88533de7ba49bf903ad33664a92debb24660a922ecd9cac8
  59. healthcheck:
  60. test: redis-cli ping || exit 1
  61. restart: always
  62.  
  63. database:
  64. container_name: immich_postgres
  65. image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
  66. environment:
  67. POSTGRES_PASSWORD: ${DB_PASSWORD}
  68. POSTGRES_USER: ${DB_USERNAME}
  69. POSTGRES_DB: ${DB_DATABASE_NAME}
  70. POSTGRES_INITDB_ARGS: '--data-checksums'
  71. volumes:
  72. # 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
  73. - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
  74. healthcheck:
  75. test: >-
  76. pg_isready --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" || exit 1;
  77. Chksum="$$(psql --dbname="$${POSTGRES_DB}" --username="$${POSTGRES_USER}" --tuples-only --no-align
  78. --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')";
  79. echo "checksum failure count is $$Chksum";
  80. [ "$$Chksum" = '0' ] || exit 1
  81. interval: 5m
  82. start_interval: 30s
  83. start_period: 5m
  84. command: >-
  85. postgres
  86. -c shared_preload_libraries=vectors.so
  87. -c 'search_path="$$user", public, vectors'
  88. -c logging_collector=on
  89. -c max_wal_size=2GB
  90. -c shared_buffers=512MB
  91. -c wal_compression=on
  92. restart: always
  93.  
  94. volumes:
  95. model-cache:
  96. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement