Guest User

Untitled

a guest
Jul 31st, 2026
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. name: immich
  2. services:
  3. immich-server:
  4. container_name: immich_server
  5. image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
  6. mem_limit: 1000m
  7. cpus: 1
  8. cpu_shares: 1024
  9. # security_opt:
  10. # - no-new-privileges=true
  11. devices:
  12. - /dev/dri:/dev/dri
  13. volumes:
  14. # 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
  15. - ${UPLOAD_LOCATION}:/data
  16. - /etc/localtime:/etc/localtime:ro
  17. env_file:
  18. - .env
  19. ports:
  20. - 2283:2283
  21. depends_on:
  22. - redis
  23. - database
  24. restart: unless-stopped
  25. healthcheck:
  26. disable: false
  27. immich-machine-learning:
  28. container_name: immich_machine_learning
  29. image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}-openvino
  30. mem_limit: 4000m #in order to make sure machinelearning works properly
  31. cpus: 12 #in order to make sure transcoding works properly
  32. cpu_shares: 1024
  33. # security_opt:
  34. # - no-new-privileges=true
  35. device_cgroup_rules:
  36. - c 189:* rmw
  37. devices:
  38. - /dev/dri:/dev/dri
  39. volumes:
  40. - /dev/bus/usb:/dev/bus/usb
  41. - model-cache:/cache
  42. env_file:
  43. - .env
  44. restart: unless-stopped
  45. healthcheck:
  46. disable: false
  47. redis:
  48. container_name: immich_redis
  49. image: docker.io/valkey/valkey:9@sha256:4963247afc4cd33c7d3b2d2816b9f7f8eeebab148d29056c2ca4d7cbc966f2d9
  50. mem_limit: 1000m
  51. cpus: 1
  52. cpu_shares: 1024
  53. security_opt:
  54. - no-new-privileges=true
  55. healthcheck:
  56. test: redis-cli ping || exit 1
  57. restart: unless-stopped
  58. database:
  59. container_name: immich_postgres
  60. image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23
  61. mem_limit: 1000m
  62. cpus: 1
  63. cpu_shares: 1024
  64. security_opt:
  65. - no-new-privileges=true
  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. env_file:
  75. - .env
  76. shm_size: 128mb
  77. restart: unless-stopped
  78. healthcheck:
  79. disable: false
  80. volumes:
  81. model-cache: null
  82. networks: {}
Advertisement
Add Comment
Please, Sign In to add comment