All apps · 0 apps
mtphotos
OfficialDocker app from baofeidyz's Repository
Overview
Readme
View on GitHubMT Photos Unraid Templates
English | 简体中文
This repository contains an Unraid Docker template for MT Photos, a private photo and video management system for NAS users.
Repository contents
templates/mtphotos.xml— Unraid Docker template (v2) with bundled PostgreSQLtemplates/mtphotos-nodb.xml— NoDB template for external PostgreSQLtemplates/mtphotos-ai.xml— MT Photos AI recognition API (ONNX) templatetemplates/mtphotos-insightface-api.xml— MT Photos InsightFace facial recognition API templateca_profile.xml— Community Applications maintainer profileicons/mtphotos.png— Repository/application iconREADME.md— English documentation (default)README_CN.md— Simplified Chinese documentationLICENSE— Template repository license
Image and configuration
mtphotosusesmtphotos/mt-photos:latestwith bundled PostgreSQL; its database is persisted under/config.mtphotos-nodbusesmtphotos/mt-photos:nodb-latest. ConfigurePOSTGRES_HOST,POSTGRES_PORT,POSTGRES_DATABASE,POSTGRES_USERandPOSTGRES_PASSWORD, and back up the external database separately.
Both main apps default to the same WebUI port, upload path and library path. Do not run both with unchanged defaults. For a parallel installation, change one app's host port and its /config and /upload host paths.
Optional recognition services
| App | Image | Port | Configuration |
|---|---|---|---|
mtphotos-ai |
mtphotos/mt-photos-ai:onnx-latest |
8060/tcp |
API_AUTH_KEY |
mtphotos-insightface-api |
devfox101/mt-photos-insightface-unofficial:latest |
8066/tcp |
API_AUTH_KEY |
Neither API container requires a storage mapping. After installation, add their API addresses in MT Photos, for example http://NAS-LAN-IP:8060 and http://NAS-LAN-IP:8066, using the matching API_AUTH_KEY from each template. InsightFace uses a community image and is not an official MT Photos image.
| Setting | Container target and host default |
|---|---|
| WebUI | 8063/tcp |
| Tailscale WebUI port | 8063 |
| Settings and cache | /config ← /mnt/user/appdata/mtphotos |
| Mobile uploads | /upload ← /mnt/user/photos/MTPhotos-Upload |
| Existing library | /photos ← /mnt/user/photos |
| Timezone | TZ=Asia/Shanghai |
| Temporary storage (optional; transcoding use unverified) | /temp ← /mnt/user/appdata/mtphotos/temp |
Requirements
Recommended hardware: x86_64, at least 4 GB RAM and a dual-core 2.0 GHz CPU, following the official installation guide.
The bundled-database template persists PostgreSQL through /config. NoDB requires a separate PostgreSQL service; face recognition and text-to-image search require pgvector support.
Temporary storage: verification pending
The optional temp mapping is shown in advanced settings and exposes writable storage at /temp. It does not by itself select MT Photos' transcoding directory. Automatic use of this path has not been established from official documentation or a running image. There is no verified application setting or environment variable supplied here to redirect transcoding.
Before relying on this mapping, run a transcoding task and confirm the actual temporary output path from logs or process arguments and newly created files. If the application uses a different path, map that confirmed path instead. Do not treat completed transcodes in the permanent cache as proof that temporary files used /temp.
Required before publishing
Repository: baofeidyz/unraid-template-mtphotos. Maintainer: baofeidyz. Template support: GitHub Issues.
Publish the files to the main branch and verify these raw URLs:
https://raw.githubusercontent.com/baofeidyz/unraid-template-mtphotos/main/templates/mtphotos-nodb.xml
https://raw.githubusercontent.com/baofeidyz/unraid-template-mtphotos/main/templates/mtphotos.xml
https://raw.githubusercontent.com/baofeidyz/unraid-template-mtphotos/main/templates/mtphotos-ai.xml
https://raw.githubusercontent.com/baofeidyz/unraid-template-mtphotos/main/templates/mtphotos-insightface-api.xml
https://raw.githubusercontent.com/baofeidyz/unraid-template-mtphotos/main/icons/mtphotos.png
https://raw.githubusercontent.com/baofeidyz/unraid-template-mtphotos/main/README.md
The main application icon is icons/mtphotos.png. If you replace it, use an image you are authorized to publish and update both main app templates and ca_profile.xml if the path changes.
Validate and test
Validate the XML files from the repository root:
xmllint --noout ca_profile.xml templates/*.xml
Before submitting to Community Applications:
- Push to the
mainbranch of a public GitHub repository. - Check the URLs referenced by
Icon,TemplateURL,ReadMe,Support,Project,WebPage, andForum; ensure they are accessible and contain no placeholders. - Install manually on Unraid and verify the main app's startup, WebUI access, database persistence under
/config, backup restoration, mobile backup to/upload, and library access under/photos. - Start each optional API, check it with the corresponding key, and verify AI and facial recognition jobs from MT Photos.
- Verify the actual temporary transcoding path and, if using the optional
tempmapping, confirm temporary files are written to its host directory. Check host paths and timezone; use a read-only library mapping to prevent changes to originals, and verify separate database backups. - Submit the public repository through the Unraid Community Applications submission portal.
Notes
- The WebUI URL uses
[PORT:8063], which Unraid resolves to the mapped host port. /configstores the bundled database, settings, thumbnails, previews and cache;/uploadstores mobile photo and video backups. Keep both mappings persistent and writable.- Add further path mappings in Unraid for additional libraries.
- This repository packages only Community Applications metadata. MT Photos and its Docker image remain subject to their respective upstream terms.
Upstream references
Install Mtphotos on Unraid in a few clicks.
Find Mtphotos in Community Apps on your Unraid server, review the template, and click Install. Unraid handles the Docker app or plugin setup from the published template.
Requirements
Categories
Download Statistics
Related apps
Explore more like this
Explore allDetails
mtphotos/mt-photos:latestRuntime arguments
- Web UI
http://[IP]:[PORT:8063]- Network
bridge- Shell
bash- Privileged
- false
Template configuration
MT Photos 网页访问端口,可按需修改宿主机端口。 English: MT Photos web interface port; change the host port if needed.
- Target
- 8063
- Default
- 8063
保存内置 PostgreSQL 数据库、应用配置、缩略图、预览及缓存。此目录必须持久化并备份。 English: Stores the bundled PostgreSQL database, application settings, thumbnails, previews and cache. This directory must be persisted and backed up.
- Target
- /config
- Default
- /mnt/user/appdata/mtphotos
保存通过 MT Photos 手机 App 备份的照片和视频,需要可写权限。 English: Writable destination for photos and videos backed up from the MT Photos mobile app.
- Target
- /upload
- Default
- /mnt/user/photos/MTPhotos-Upload
已有照片和视频所在目录,请将宿主机路径改为实际图库路径。如不允许修改原文件,请改为只读模式。 English: Existing photo and video library. Set the host path to your library; use read-only mode to prevent changes to originals.
- Target
- /photos
- Default
- /mnt/user/photos
可选的临时文件目录映射,需要可写权限及足够空间。尚未确认 MT Photos 会自动将临时转码文件写入 /temp;仅添加映射不代表转码路径已设置。 English: Optional writable temporary storage with sufficient free space. Automatic use of /temp for transcoding has not been verified; this mapping alone does not configure the transcoding path.
- Target
- /temp
- Default
- /mnt/user/appdata/mtphotos/temp
容器时区,使用 IANA 格式,例如 Asia/Shanghai 或 Europe/London。 English: Container timezone in IANA format, for example Asia/Shanghai or Europe/London.
- Target
- TZ
- Default
- Asia/Shanghai