From c8583c5289aa2ca246b2678f05c27d2c77b711b4 Mon Sep 17 00:00:00 2001 From: Gabe Date: Sat, 11 Oct 2025 15:29:16 +0000 Subject: [PATCH] Update Immich/Docker-Compose.yml --- Immich/Docker-Compose.yml | 35 +++++++++++++---------------------- 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/Immich/Docker-Compose.yml b/Immich/Docker-Compose.yml index 37e6d5f..5b01714 100644 --- a/Immich/Docker-Compose.yml +++ b/Immich/Docker-Compose.yml @@ -31,21 +31,22 @@ services: restart: unless-stopped healthcheck: disable: false - #immich-machine-learning: - # container_name: immich_machine_learning + +immich-machine-learning: + container_name: immich_machine_learning # For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] to the image tag. # Example tag: ${IMMICH_VERSION:-release}-cuda - # image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} - # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration + image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} + # extends: # uncomment this section for hardware acceleration - see https://docs.immich.app/features/ml-hardware-acceleration # file: hwaccel.ml.yml # service: cpu # set to one of [armnn, cuda, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable - # volumes: - # - model-cache:/cache - # env_file: - # - stack.env - # restart: always - # healthcheck: - # disable: false + volumes: + - /srv/docker/immich/model-cache:/cache + env_file: + - stack.env + restart: unless-stopped + healthcheck: + disable: false redis: container_name: immich_redis @@ -68,14 +69,4 @@ services: # 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 - ${DB_DATA_LOCATION}:/var/lib/postgresql/data shm_size: 128mb - restart: unless-stopped - # healthcheck: - # 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 - # interval: 5m - # start_interval: 30s - # start_period: 5m - # 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"] - # restart: unless-stopped - - #volumes: - # model-cache: \ No newline at end of file + restart: unless-stopped \ No newline at end of file