-
Notifications
You must be signed in to change notification settings - Fork 1
Installation
ZASENJC edited this page May 23, 2026
·
1 revision
English | 简体中文
- Docker & Docker Compose installed
- A directory with your media files (videos, subtitles, covers)
- At least 1GB free disk space for database and cover cache
git clone https://github.com/ZASENJC/mediatree.git
cd mediatreecp .env.example .envEdit .env with your settings:
# Required — set your own credentials
AUTH_USER=your_username
AUTH_PASS=your_secure_password
# Media directories (format: /host/path:/container/mount:ro)
MEDIA_VOLUMES=/home/user/media/movies:/media/movies:ro \
/home/user/media/shows:/media/shows:ro
# Optional — TMDB API for better metadata
TMDB_ACCESS_TOKEN=your_tmdb_read_access_tokendocker compose up -dVisit http://localhost:27580 and follow the setup wizard.
You can also pull the pre-built image directly:
docker pull zasenjc/mediatree:latestSee the docker-compose.yml template for a complete deployment example.
| Mount | Mode | Purpose |
|---|---|---|
/host/path:/media/name |
:ro |
Media files (read-only) |
./data:/app/data |
:rw |
Persistent data (database, covers, config, fonts) |
-
linux/amd64— Intel/AMD x86_64 -
linux/arm64— Apple Silicon, Raspberry Pi 4/5, ARM servers
# Pull latest and restart
docker compose pull
docker compose up -d --force-recreate
# Or rebuild from source
docker compose build --no-cache
docker compose up -dThe container runs as non-root user (uid 1000). Ensure your data directory is writable:
chmod 755 ./dataChange HOST_PORT in .env if port 27580 is already in use:
HOST_PORT=3000System CJK fonts (Noto CJK, WenQuanYi Micro Hei) are installed automatically. Upload custom fonts via Settings → Subtitle Fonts.