Advertisement
egoitz89

Immich

Nov 4th, 2024
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.97 KB | None | 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.       - ${UPLOAD_LOCATION}:/usr/src/app/upload
  13.       - /etc/localtime:/etc/localtime:ro
  14.     env_file:
  15.      - stack.env
  16.     ports:
  17.      - 2283:3001
  18.     depends_on:
  19.      - redis
  20.       - database
  21.     restart: always
  22.     healthcheck:
  23.       disable: false
  24.  
  25.   immich-machine-learning:
  26.     container_name: immich_machine_learning
  27.     # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
  28.     # Example tag: ${IMMICH_VERSION:-release}-cuda
  29.     image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
  30.     # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
  31.     #   file: hwaccel.ml.yml
  32.     #   service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
  33.     volumes:
  34.      - model-cache:/cache
  35.     env_file:
  36.      - stack.env
  37.     restart: always
  38.     healthcheck:
  39.       disable: false
  40.  
  41.   redis:
  42.     container_name: immich_redis
  43.     image: docker.io/redis:6.2-alpine@sha256:2d1463258f2764328496376f5d965f20c6a67f66ea2b06dc42af351f75248792
  44.     healthcheck:
  45.       test: redis-cli ping || exit 1
  46.     restart: always
  47.  
  48.   database:
  49.     container_name: immich_postgres
  50.     image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
  51.     environment:
  52.       POSTGRES_PASSWORD: ${DB_PASSWORD}
  53.       POSTGRES_USER: ${DB_USERNAME}
  54.       POSTGRES_DB: ${DB_DATABASE_NAME}
  55.       POSTGRES_INITDB_ARGS: '--data-checksums'
  56.     volumes:
  57.      # 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
  58.       - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
  59.     healthcheck:
  60.       test: pg_isready --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' || exit 1; Chksum="$$(psql --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' --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
  61.       interval: 5m
  62.       start_interval: 30s
  63.       start_period: 5m
  64.     command: ["postgres", "-c", "shared_preload_libraries=vectors.so", "-c", 'search_path="$$user", public, vectors', "-c", "logging_collector=on", "-c", "max_wal_size=2GB", "-c", "shared_buffers=512MB", "-c", "wal_compression=on"]
  65.     restart: always
  66.  
  67. volumes:
  68.   model-cache:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement