Files
mijn-docker-stacks/immich/docker-compose.yml
T
MisticDruid 430651cfda Change media volume to use NFS driver
Updated volume configuration to use NFS for media storage.
2026-01-12 03:36:40 +01:00

79 lines
1.8 KiB
YAML

version: '3.8'
services:
immich-server:
container_name: immich_server
image: ghcr.io/immich-app/immich-server:release
volumes:
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
- nas_fotos:/mnt/media:ro
environment:
DB_HOSTNAME: ${DB_HOSTNAME}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
DB_DATABASE_NAME: ${DB_DATABASE_NAME}
REDIS_HOSTNAME: ${REDIS_HOSTNAME}
LOG_LEVEL: ${LOG_LEVEL}
TZ: ${TZ}
ports:
- 2283:2283
depends_on:
- redis
- database
restart: always
networks:
- immich
immich-machine-learning:
container_name: immich_machine_learning
image: ghcr.io/immich-app/immich-machine-learning:release
volumes:
- model-cache:/cache
environment:
DB_HOSTNAME: ${DB_HOSTNAME}
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
DB_DATABASE_NAME: ${DB_DATABASE_NAME}
REDIS_HOSTNAME: ${REDIS_HOSTNAME}
LOG_LEVEL: ${LOG_LEVEL}
TZ: ${TZ}
restart: always
networks:
- immich
redis:
container_name: immich_redis
image: redis:6.2-alpine
restart: always
networks:
- immich
database:
container_name: immich_postgres
image: tensorchord/pgvecto-rs:pg16-v0.2.1
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums'
volumes:
- pgdata:/var/lib/postgresql/data
restart: always
networks:
- immich
volumes:
pgdata:
model-cache:
nas_fotos:
driver: local
driver_opts:
type: nfs
o: "addr=10.1.10.7,nolock,soft,rw"
device: ":/volume1/immich/library/admin"
networks:
immich:
driver: bridge