update .env files and enable machine learning on immich
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user