update .env files and enable machine learning on immich
This commit is contained in:
@@ -14,6 +14,7 @@ services:
|
|||||||
- PUID=1000 # Use your actual host UID
|
- PUID=1000 # Use your actual host UID
|
||||||
- PGID=1000 # Use your actual host GID
|
- PGID=1000 # Use your actual host GID
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
books_nfs:
|
books_nfs:
|
||||||
driver: local
|
driver: local
|
||||||
|
|||||||
@@ -6,5 +6,5 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
ports:
|
ports:
|
||||||
- 4343:8080
|
- ${DOZZEL_PORT}:8080
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
@@ -17,36 +17,42 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
ports:
|
ports:
|
||||||
- "2283:2283"
|
- "${IMMICH_PORT}:2283"
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
- database
|
- database
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
disable: false
|
disable: false
|
||||||
|
networks:
|
||||||
|
- immich-network
|
||||||
|
|
||||||
# immich-machine-learning:
|
immich-machine-learning:
|
||||||
# container_name: immich_machine_learning
|
container_name: immich_machine_learning
|
||||||
# # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
|
# For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
|
||||||
# # Example tag: ${IMMICH_VERSION:-release}-cuda
|
# Example tag: ${IMMICH_VERSION:-release}-cuda
|
||||||
# image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
|
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
|
# extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
|
||||||
# # file: hwaccel.ml.yml
|
# 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
|
# service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
|
||||||
# volumes:
|
volumes:
|
||||||
# - model-cache:/cache
|
- ${MACHINE_LEARNING_CACHE}:/cache
|
||||||
# env_file:
|
env_file:
|
||||||
# - .env
|
- .env
|
||||||
# restart: always
|
restart: unless-stopped
|
||||||
# healthcheck:
|
healthcheck:
|
||||||
# disable: false
|
disable: false
|
||||||
|
networks:
|
||||||
|
- immich-network
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
container_name: immich_redis
|
container_name: immich_redis
|
||||||
image: docker.io/valkey/valkey:8@sha256:81db6d39e1bba3b3ff32bd3a1b19a6d69690f94a3954ec131277b9a26b95b3aa
|
image: docker.io/valkey/valkey:8@sha256:81db6d39e1bba3b3ff32bd3a1b19a6d69690f94a3954ec131277b9a26b95b3aa
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: redis-cli ping || exit 1
|
test: redis-cli ping || exit 1
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- immich-network
|
||||||
|
|
||||||
|
|
||||||
database:
|
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
|
# 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
|
- ${DB_DATA_LOCATION}:/var/lib/postgresql/data
|
||||||
shm_size: 128mb
|
shm_size: 128mb
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- immich-network
|
||||||
|
|
||||||
volumes:
|
#volumes:
|
||||||
#model-cache:
|
#model-cache:
|
||||||
|
|
||||||
immich-library:
|
# immich-library:
|
||||||
name: immich-library
|
# name: immich-library
|
||||||
driver_opts:
|
# driver_opts:
|
||||||
type: nfs
|
# type: nfs
|
||||||
o: addr=truenas,nolock,soft,rw
|
# o: addr=truenas,nolock,soft,rw
|
||||||
device: :/mnt/store/vault/app/immich/library
|
# device: :/mnt/store/vault/app/immich/library
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
frontend:
|
immich-network:
|
||||||
external: true
|
driver: bridge
|
||||||
|
# frontend:
|
||||||
|
# external: true
|
||||||
|
|||||||
Reference in New Issue
Block a user