Local-first video metadata scraper and media manager. Self-hosted web UI for VPS and NAS.
50K+

A local-first video metadata scraper and media manager, packaged for self-hosting on a VPS or NAS.
Website · Live demo · Source and full README · Docker guide · Docker 部署 · Releases · Telegram channel · Issues · 简体中文
Movie demo data; see asset credits and licenses. More screenshots are in the GitHub README.
| Item | Value |
|---|---|
| Image | longmeidao/peach; the same image is also published as ghcr.io/peach-mitao/peach |
| Version tags | One per release, built from the release commit |
edge, latest | Both move to the latest complete release; NAS container managers check latest for updates |
| Platform | linux/amd64 and linux/arm64 in one multi-arch image |
| User | UID/GID 1000 by default; override with PEACH_UID/PEACH_GID |
| Port | 8900/tcp |
/data | Settings, database, credentials and image cache; must be persistent |
/media | Your media, mounted read-only by default |
Both architectures include Peach, the web UI, FFmpeg, FFprobe, OpenSSL, the amane scraping runtime, cloudflared for tunnels and untrunc for MP4 index recovery. The untrunc and linked FFmpeg sources, licenses and rebuild scripts are included under /usr/local/share/doc/untrunc.
This example targets a Linux host with Docker Engine and Docker Compose. The media folder must already exist and be readable by the configured UID/GID. If you use CloudDrive2, finish binding and mounting your cloud drives on the host first.
Save this as compose.yaml in an empty folder. It is a shortened copy of the repository's compose.yaml: it leaves out the health-check and log-rotation settings and the optional Watchtower service, and it refuses to start until PEACH_MEDIA_ROOT is set. Use the repository file if you want those settings.
services:
peach:
image: longmeidao/peach:${PEACH_VERSION:-edge}
init: true
restart: unless-stopped
stop_grace_period: 75s
environment:
PEACH_IMAGE_TAG: ${PEACH_VERSION:-edge}
PEACH_UID: "${PEACH_UID-1000}"
PEACH_GID: "${PEACH_GID-1000}"
labels:
com.centurylinklabs.watchtower.enable: "true"
ports:
- "${PEACH_BIND:-127.0.0.1}:${PEACH_PORT:-8900}:8900"
volumes:
- peach-data:/data
- peach-update:/update
- type: bind
source: ${PEACH_MEDIA_ROOT:?Set PEACH_MEDIA_ROOT in .env to an existing media folder}
target: /media
read_only: true
bind:
propagation: rslave
create_host_path: false
volumes:
peach-data:
peach-update:
Save .env next to it and replace the path with the absolute media path on your host:
PEACH_MEDIA_ROOT=/absolute/path/to/media
PEACH_BIND=127.0.0.1
PEACH_PORT=8900
PEACH_UID=1000
PEACH_GID=1000
Set PEACH_UID and PEACH_GID to numeric IDs when NAS ownership cannot be changed to 1000. The entrypoint updates ownership of /data and the one-click update token volume when needed, then runs Peach as the requested non-root user. It never recursively changes /media. Keep these values in the persistent .env; changing them later can change ownership under a bind-mounted /data. Rootless Docker and userns-remap remain subject to the host's ID mapping.
Pull the image:
docker compose pull
Start Peach:
docker compose up -d
Open http://127.0.0.1:8900 on the host, or reach it through a private VPN or SSH tunnel. The first-time setup page asks for the media folder inside the container, such as /media, and an access password. There is no default password.
PEACH_BIND=127.0.0.1 only accepts connections from the host itself. To open Peach from another computer, set PEACH_BIND to the NAS's LAN IP, recreate the container and open http://<NAS LAN IP>:<PEACH_PORT>. Set an access password first. The image has no multi-user accounts; for public hosting, read the security policy.
peach token in the container's terminal shows the token for the userscript and the API; it is not the sign-in password. docker compose exec enters the container as root; the peach command switches to the configured UID/GID before it runs, so it leaves no root-owned files in /data.
For a new NAS installation, run python -m peach.nas_setup --bind <NAS IP> --media <host media directory> inside the image. It generates a Compose file with a persistent data volume, read-only media and a stable hostname. --uid and --gid set PEACH_UID and PEACH_GID.
The amd64 image includes Intel iHD and Mesa VAAPI drivers. GPU access is optional. Give the container the render node's numeric group, or, for a mode-0600 node, explicitly select --prepare-render; the entrypoint then hands only the container device to the service group before it drops to the non-root user.
See the NAS installation and hardware guide for prerequisites, preserving an existing deployment and troubleshooting.
Run docker compose pull and docker compose up -d again. Keep the peach-data volume: deleting it removes your settings, database and watch history.
To update from the settings page instead, use the repository's compose.yaml and start it with docker compose --profile watchtower up -d. It adds an optional Watchtower container that Peach configures itself; the settings page then offers a one-click update when a new image is published. Watchtower mounts the Docker socket, which gives it root-level control of the host; read the one-click update section before enabling it.
Hardware transcoding, CloudDrive2 networking, path mapping and diagnostics are covered in the Docker guide.
AGPL-3.0-or-later. Third-party components, including the bundled amane runtime, retain their own licenses. Use of the Peach name and logo follows the name and logo policy.
Manage only media you own or are authorized to use, subject to laws, copyright and source-platform access, age and regional restrictions. Peach does not provide video resources or access to paid content.
docker pull longmeidao/peach:latest