> For AI agents: the complete documentation index is available at https://www.tteam.icu/zh/llms.txt, the full documentation bundle is available at https://www.tteam.icu/zh/llms-full.txt.

# MT_Photos


AI 总结AI 生成

**核心内容**：介绍 MT Photos 私有相册服务的 Docker 部署方式，可用于照片备份、相册管理和家庭影像整理。
**内容要点**：
- MT Photos Docker 部署
- 照片、缩略图和数据库目录规划
- 相册管理与备份策略
适合在个人服务器、家庭实验室或轻量生产环境中按步骤部署与维护时参考。

MT Photos 是一款付费闭源的私有相册服务，定位接近群晖 Photos，适合用来做照片备份、相册管理和家庭影像整理。

[官网](https://mtmt.tech/)

## 启动

```yml file="./mt/docker-compose.yml" title="docker-compose.yml"
version: "3"

services:
  mtphotos:
    image: registry.cn-hangzhou.aliyuncs.com/mtphotos/mt-photos:latest
    container_name: mtphotos
    restart: always
    ports:
      - 8063:8063
    volumes:
      - ./config:/config
      - ./upload:/upload
    environment:
      - TZ=Asia/Shanghai
      - LANG=C.UTF-8
  mt-photos-deepface:
    ports:
      - 8066:8066
    environment:
      - API_AUTH_KEY=test
    container_name: mt-photos-deepface
    image: registry.cn-hangzhou.aliyuncs.com/mtphotos/mt-photos-deepface:latest
    restart: always
  mtphotos_ai:
    image: registry.cn-hangzhou.aliyuncs.com/mtphotos/mt-photos-ai:onnx-latest
    container_name: mtphotos_ai
    restart: always
    ports:
      - 8060:8000
    environment:
      - API_AUTH_KEY=test
```

:::tip
图片服务通常会占用较多存储空间。部署前建议先规划照片目录、缩略图缓存目录和备份策略。
:::
