services: immich-server: env_file: - ../defaults.env image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} container_name: immich_server environment: DB_HOSTNAME: ${DB_HOSTNAME} DB_USERNAME: ${DB_USERNAME} DB_PASSWORD: ${DB_PASSWORD} DB_DATABASE_NAME: ${DB_DATABASE_NAME} REDIS_HOSTNAME: ${REDIS_HOSTNAME} volumes: - ${UPLOAD_LOCATION}:/data - /etc/localtime:/etc/localtime:ro # - ${UNRAID_APPDATA_DIR}/immich:/config # - ${UNRAID_MEDIA_DIR}/photos:/photos # - ${UNRAID_MEDIA_DIR}/libraries:/libraries labels: traefik.http.routers.immich.rule: Host(`photos.domain.com`) traefik.http.routers.immich.entryPoints: https traefik.enable: true ports: - "2283:2283" depends_on: - redis - database networks: - cloudflared - proxy - immich restart: unless-stopped immich-machine-learning: container_name: immich_machine_learning hostname: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} volumes: - ${UNRAID_FAST_DIR}/immich-machine-learning:/cache env_file: - ../defaults.env restart: always healthcheck: disable: false redis: container_name: immich_redis hostname: immich_redis image: docker.io/valkey/valkey:8@sha256:81db6d39e1bba3b3ff32bd3a1b19a6d69690f94a3954ec131277b9a26b95b3aa healthcheck: test: redis-cli ping || exit 1 env_file: - ../defaults.env restart: always networks: - immich database: image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23 container_name: immich_postgres hostname: immich_postgres environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} POSTGRES_INITDB_ARGS: "--data-checksums" DB_STORAGE_TYPE: "HDD" volumes: - ${DB_DATA_LOCATION}:/var/lib/postgresql/data env_file: - ../defaults.env shm_size: 128mb restart: always networks: - immich