services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:v1.135.1@sha256:346ff2c420e9fe71140392a2270bf5a7d29e50fd9615d1981de4a8e564f3c0a2 ports: - 2283:2283 volumes: - /mnt/truenas-services/immich:/usr/src/app/upload - /mnt/truenas-services/immich-external:/mnt/external - /etc/localtime:/etc/localtime:ro env_file: - stack.env depends_on: - redis - database restart: always networks: - immich immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:v1.134.0@sha256:e157e0fa0d4363b0b6bab1923adab5951bbcdb71cd9016470bc6810dae21d115 volumes: - model-cache:/cache env_file: - stack.env restart: always networks: - immich redis: container_name: immich_redis image: redis:8.0-alpine@sha256:48501c5ad00d5563bc30c075c7bcef41d7d98de3e9a1e6c752068c66f0a8463b restart: always networks: - immich database: container_name: immich_postgres image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:739cdd626151ff1f796dc95a6591b55a714f341c737e27f045019ceabf8e8c52 env_file: - stack.env environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} volumes: - pgdata:/var/lib/postgresql/data restart: always networks: - immich volumes: pgdata: model-cache: networks: immich: