Guest User

Untitled

a guest
Jun 17th, 2025
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.79 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:
  13.     container_name: immich
  14.     image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
  15.     # extends:
  16.     #   file: hwaccel.transcoding.yml
  17.     #   service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
  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.       - /etc/localtime:/etc/localtime:ro
  22.     env_file:
  23.      - .env
  24.     depends_on:
  25.      - redis
  26.       - database
  27.     restart: always
  28.     healthcheck:
  29.       disable: false
  30.     networks:
  31.      - main_immich
  32.  
  33.   immich-machine-learning:
  34.     container_name: immich_machine_learning
  35.     # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
  36.     # Example tag: ${IMMICH_VERSION:-release}-cuda
  37.     image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
  38.     # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
  39.     #   file: hwaccel.ml.yml
  40.     #   service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
  41.     volumes:
  42.      - model-cache:/cache
  43.     env_file:
  44.      - .env
  45.     restart: always
  46.     healthcheck:
  47.       disable: false
  48.     networks:
  49.      - main_immich
  50.  
  51.   redis:
  52.     container_name: immich_redis
  53.     image: docker.io/redis:6.2-alpine@sha256:2ba50e1ac3a0ea17b736ce9db2b0a9f6f8b85d4c27d5f5accc6a416d8f42c6d5
  54.     healthcheck:
  55.       test: redis-cli ping || exit 1
  56.     restart: always
  57.     networks:
  58.      - main_immich
  59.  
  60.   database:
  61.     container_name: immich_postgres
  62.     #image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
  63.     image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0
  64.     environment:
  65.       POSTGRES_PASSWORD: ${DB_PASSWORD}
  66.       POSTGRES_USER: ${DB_USERNAME}
  67.       POSTGRES_DB: ${DB_DATABASE_NAME}
  68.       POSTGRES_INITDB_ARGS: '--data-checksums'
  69.       DB_STORAGE_TYPE: 'HDD'
  70.     volumes:
  71.      # 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
  72.       - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
  73.     restart: always
  74.     networks:
  75.      - main_immich
  76.  
  77. networks:
  78.   main_immich:
  79.     external: true
  80.  
  81. volumes:
  82.  model-cache:
Advertisement
Add Comment
Please, Sign In to add comment