version: "3.8" services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:v1.118.2@sha256:f158810c90f80162f9b08729bbaec963731f12662960be38ff93093b78a0bbdf 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.118.2@sha256:4d89a309fd08a93649f1ae4a7572ae98f09d66b4c1dfb7916b71d31dec7eda38 volumes: - model-cache:/cache env_file: - stack.env restart: always networks: - immich redis: container_name: immich_redis image: redis:6.2-alpine@sha256:031b5b1e64d03f0e2134f591c5cd310c33ec3fdd41f00047c67877fd997a8b42 restart: always networks: - immich database: container_name: immich_postgres image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0 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: