Guest User

Untitled

a guest
Jan 24th, 2025
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1. #
  2. # WARNING: Make sure to use the docker-compose.yml of the current release:
  3. #
  4. # https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
  5. #
  6. # The compose file on main may not be compatible with the latest release.
  7. #
  8.  
  9. name: immich
  10.  
  11. services:
  12. immich-server:
  13. container_name: immich_server
  14. image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
  15. devices:
  16. - /dev/dri:/dev/dri
  17. volumes:
  18. - /volume1/data/immich:/usr/src/app/upload
  19. - /etc/localtime:/etc/localtime:ro
  20. environment:
  21. - DB_USERNAME=postgres
  22. - DB_PASSWORD=postgres
  23. - DB_DATABASE_NAME=immich
  24. ports:
  25. - 2283:2283
  26. depends_on:
  27. - redis
  28. - database
  29. restart: always
  30. healthcheck:
  31. disable: false
  32. labels:
  33. - com.centurylinklabs.watchtower.enable=false
  34.  
  35. immich-machine-learning:
  36. container_name: immich_machine_learning
  37. image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
  38. volumes:
  39. - model-cache:/cache
  40. environment:
  41. - DB_USERNAME=postgres
  42. - DB_PASSWORD=postgres
  43. - DB_DATABASE_NAME=immich
  44. restart: always
  45. labels:
  46. - com.centurylinklabs.watchtower.enable=false
  47.  
  48. redis:
  49. container_name: immich_redis
  50. image: docker.io/redis:6.2-alpine@sha256:2ba50e1ac3a0ea17b736ce9db2b0a9f6f8b85d4c27d5f5accc6a416d8f42c6d5
  51. healthcheck:
  52. test: redis-cli ping || exit 1
  53. restart: always
  54. labels:
  55. - com.centurylinklabs.watchtower.enable=false
  56.  
  57. database:
  58. container_name: immich_postgres
  59. image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
  60. environment:
  61. POSTGRES_PASSWORD: postgres
  62. POSTGRES_USER: postgres
  63. POSTGRES_DB: immich
  64. POSTGRES_INITDB_ARGS: '--data-checksums'
  65. volumes:
  66. - /volume3/docker/immich/postgres_db:/var/lib/postgresql/data
  67. healthcheck:
  68. test: pg_isready --dbname=immich || exit 1; Chksum="$$(psql --dbname=immich --username=postgres --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
  69. interval: 5m
  70.  
  71. start_period: 5m
  72. command:
  73. [
  74. 'postgres',
  75. '-c',
  76. 'shared_preload_libraries=vectors.so',
  77. '-c',
  78. 'search_path="$$user", public, vectors',
  79. '-c',
  80. 'logging_collector=on',
  81. '-c',
  82. 'max_wal_size=2GB',
  83. '-c',
  84. 'shared_buffers=512MB',
  85. '-c',
  86. 'wal_compression=on',
  87. ]
  88. restart: always
  89. labels:
  90. - com.centurylinklabs.watchtower.enable=false
  91.  
  92. volumes:
  93. model-cache:
Advertisement
Add Comment
Please, Sign In to add comment