regalen

Portainer Stack for Immich

Nov 5th, 2025
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.21 KB | Software | 0 0
  1. name: immich
  2.  
  3. services:
  4.   immich-server:
  5.     container_name: immich_server
  6.     image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
  7.     # extends:
  8.     #   file: hwaccel.transcoding.yml
  9.     #   service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
  10.     volumes:
  11.      # 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
  12.       - ${LIBRARY_LOCATION}:/usr/src/app/upload/library
  13.       - ${UPLOAD_LOCATION}:/usr/src/app/upload/upload
  14.       - ${THUMBS_LOCATION}:/usr/src/app/upload/thumbs
  15.       - ${PROFILE_LOCATION}:/usr/src/app/upload/profile
  16.       - ${VIDEO_LOCATION}:/usr/src/app/upload/encoded-video
  17.       - /etc/localtime:/etc/localtime:ro
  18.     ports:
  19.      - '2283:2283'
  20.     depends_on:
  21.      - redis
  22.       - database
  23.     restart: always
  24.     healthcheck:
  25.       disable: false
  26.  
  27.   immich-machine-learning:
  28.     container_name: immich_machine_learning
  29.     # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag.
  30.     # Example tag: ${IMMICH_VERSION:-release}-cuda
  31.     image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
  32.     # extends: # uncomment this section for hardware acceleration - see https://docs.immich.app/features/ml-hardware-acceleration
  33.     #   file: hwaccel.ml.yml
  34.     #   service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable
  35.     volumes:
  36.      - model-cache:/cache
  37.       - ${LIBRARY_LOCATION}:/usr/src/app/upload/library
  38.       - ${UPLOAD_LOCATION}:/usr/src/app/upload/upload
  39.       - ${THUMBS_LOCATION}:/usr/src/app/upload/thumbs
  40.       - ${PROFILE_LOCATION}:/usr/src/app/upload/profile
  41.       - ${VIDEO_LOCATION}:/usr/src/app/upload/encoded-video
  42.     restart: always
  43.     healthcheck:
  44.       disable: false
  45.  
  46.   redis:
  47.     container_name: immich_redis
  48.     image: docker.io/valkey/valkey:8@sha256:81db6d39e1bba3b3ff32bd3a1b19a6d69690f94a3954ec131277b9a26b95b3aa
  49.     healthcheck:
  50.       test: redis-cli ping || exit 1
  51.     restart: always
  52.  
  53.   database:
  54.     container_name: immich_postgres
  55.     image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23
  56.     environment:
  57.       POSTGRES_PASSWORD: ${DB_PASSWORD}
  58.       POSTGRES_USER: ${DB_USERNAME}
  59.       POSTGRES_DB: ${DB_DATABASE_NAME}
  60.       POSTGRES_INITDB_ARGS: '--data-checksums'
  61.       # Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
  62.       DB_STORAGE_TYPE: 'HDD'
  63.     volumes:
  64.      # 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
  65.       - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
  66.       - ${LIBRARY_LOCATION}:/usr/src/app/upload/library
  67.       - ${UPLOAD_LOCATION}:/usr/src/app/upload/upload
  68.       - ${THUMBS_LOCATION}:/usr/src/app/upload/thumbs
  69.       - ${PROFILE_LOCATION}:/usr/src/app/upload/profile
  70.       - ${VIDEO_LOCATION}:/usr/src/app/upload/encoded-video
  71.     shm_size: 128mb
  72.     restart: always
  73.  
  74. volumes:
  75.  model-cache:
Advertisement
Add Comment
Please, Sign In to add comment