name: immich services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:release volumes: - /mnt/truenas/media/immich:/usr/src/app/upload - /mnt/truenas/media/immich/library:/mnt/import:ro - /etc/localtime:/etc/localtime:ro environment: - DB_HOSTNAME=immich_postgres - DB_USERNAME=immich - DB_PASSWORD=wnAtOcXH+dxG0xLPtZonv2pPTtlkIw1fRz26GMNQ7ag= - DB_DATABASE_NAME=immich - REDIS_HOSTNAME=immich_redis depends_on: - redis - database networks: - traefik - internal restart: unless-stopped labels: - "traefik.enable=true" - "traefik.http.routers.immich.rule=Host(`immich.lan.krilio.net`) || Host(`immich.krilio.net`)" - "traefik.http.routers.immich.tls.certresolver=cloudflare" - "traefik.http.services.immich.loadbalancer.server.port=2283" immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:release volumes: - immich_model_cache:/cache networks: - internal restart: unless-stopped redis: container_name: immich_redis image: docker.io/redis:6.2-alpine networks: - internal restart: unless-stopped database: container_name: immich_postgres image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0 environment: POSTGRES_PASSWORD: wnAtOcXH+dxG0xLPtZonv2pPTtlkIw1fRz26GMNQ7ag= POSTGRES_USER: immich POSTGRES_DB: immich POSTGRES_INITDB_ARGS: '--data-checksums' volumes: - immich_pgdata:/var/lib/postgresql/data networks: - internal restart: unless-stopped volumes: immich_model_cache: immich_pgdata: networks: traefik: external: true internal: internal: true