update .env files and enable machine learning on immich

This commit is contained in:
2026-04-04 10:18:24 +00:00
parent be698ee53e
commit 13d245a003
3 changed files with 41 additions and 30 deletions

View File

@@ -14,6 +14,7 @@ services:
- PUID=1000 # Use your actual host UID
- PGID=1000 # Use your actual host GID
restart: unless-stopped
volumes:
books_nfs:
driver: local

View File

@@ -6,5 +6,5 @@ services:
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- 4343:8080
restart: always
- ${DOZZEL_PORT}:8080
restart: unless-stopped

View File

@@ -17,36 +17,42 @@ services:
env_file:
- .env
ports:
- "2283:2283"
- "${IMMICH_PORT}:2283"
depends_on:
- redis
- database
restart: always
restart: unless-stopped
healthcheck:
disable: false
networks:
- immich-network
# immich-machine-learning:
# container_name: immich_machine_learning
# # For hardware acceleration, add one of -[armnn, cuda, openvino] 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
# # file: hwaccel.ml.yml
# # service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
# volumes:
# - model-cache:/cache
# env_file:
# - .env
# restart: always
# healthcheck:
# disable: false
immich-machine-learning:
container_name: immich_machine_learning
# For hardware acceleration, add one of -[armnn, cuda, openvino] 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
# file: hwaccel.ml.yml
# service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
volumes:
- ${MACHINE_LEARNING_CACHE}:/cache
env_file:
- .env
restart: unless-stopped
healthcheck:
disable: false
networks:
- immich-network
redis:
container_name: immich_redis
image: docker.io/valkey/valkey:8@sha256:81db6d39e1bba3b3ff32bd3a1b19a6d69690f94a3954ec131277b9a26b95b3aa
healthcheck:
test: redis-cli ping || exit 1
restart: always
restart: unless-stopped
networks:
- immich-network
database:
@@ -62,18 +68,22 @@ 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: always
restart: unless-stopped
networks:
- immich-network
volumes:
#volumes:
#model-cache:
immich-library:
name: immich-library
driver_opts:
type: nfs
o: addr=truenas,nolock,soft,rw
device: :/mnt/store/vault/app/immich/library
# immich-library:
# name: immich-library
# driver_opts:
# type: nfs
# o: addr=truenas,nolock,soft,rw
# device: :/mnt/store/vault/app/immich/library
networks:
frontend:
external: true
immich-network:
driver: bridge
# frontend:
# external: true