Mantareel
Get the beta

Setup guide · Advanced

Every switch, documented.

Docker in depth, graphics cards, every setting, networking, remote access, performance, data, automation and fixes.

Docker in depth

A complete Compose file, with every line explained. Media can be mounted read-only; Mantareel never writes to your film folders.

services:
  mantareel:
    image: <mantareel-image>
    container_name: mantareel
    restart: unless-stopped
    ports:
      - "3099:3099"   # the app, API and streams
      - "3443:3443"   # built-in HTTPS
    environment:
      MERIDIAN_TMDB_API_KEY: "your-key"   # or Settings, Metadata
      MERIDIAN_MAX_TRANSCODE_SESSIONS: "4"
      RUST_LOG: "info"
    volumes:
      - mantareel-data:/var/lib/meridian   # database, artwork, caches
      - /path/to/Movies:/media/movies:ro
      - /path/to/TV:/media/tv:ro
      - /path/to/Music:/media/music:ro
      - /path/to/Photos:/media/photos:ro
    devices:
      - /dev/dri:/dev/dri   # Intel or AMD graphics
    logging:
      driver: json-file
      options:
        max-size: "10m"
        max-file: "3"
volumes:
  mantareel-data:

Settings start with MERIDIAN_, the product's working name. They stay that way so existing setups never break.

Graphics cards

Intel and AMD. Pass /dev/dri into the container, as above. Mantareel finds Quick Sync or VAAPI by itself and fixes the device permissions at start.

NVIDIA. Install the NVIDIA Container Toolkit on the host, then give the container the GPU:

docker run -d --name mantareel --gpus all \
  -p 3099:3099 \
  -v mantareel-data:/var/lib/meridian \
  -v /path/to/media:/media:ro \
  <mantareel-image>

Check · Settings, Playback shows Hardware acceleration as detected at startup, and the Dashboard lists the encoders found.

Settings reference

Environment variables, for Docker, the Linux service or the Windows service. Most also have a place in Settings.

VariableDefaultWhat it does
MERIDIAN_BIND0.0.0.0:3099Address and port for the app and API
MERIDIAN_HTTPS_PORT3443The built-in HTTPS listener
MERIDIAN_TLS_CERT
MERIDIAN_TLS_KEY
Self-signedYour own certificate and key, as PEM files
MERIDIAN_DATA_DIR/var/lib/meridian in DockerDatabase, artwork and caches
MERIDIAN_DATABASE_URLSQLite in the data folderUse PostgreSQL instead, as a postgres:// URL
MERIDIAN_TMDB_API_KEYNoneArtwork and details; or Settings, Metadata
MERIDIAN_MAX_TRANSCODE_SESSIONS4Conversions at once; 0 removes the cap
MERIDIAN_AUDIO_PASSTHROUGHOffFor example ac3,eac3: Dolby goes to receivers untouched
MERIDIAN_DISABLE_HDR_PASSTHROUGHOffConvert HDR to standard range for every converted stream
MERIDIAN_TRUSTED_PROXIES127.0.0.0/8, ::1Proxies whose X-Forwarded-For is believed
MERIDIAN_ALLOWED_ORIGINSNoneOther websites allowed to call the API
MERIDIAN_REQUIRE_ADMIN_2FAOffEvery admin must use two-factor sign-in
MERIDIAN_SESSION_IDLE_DAYS30Sign out devices left unused this long
MERIDIAN_JWT_SECRETGenerated, kept in the data folderPin the sign-in key; 32 characters or more, or it's ignored
RUST_LOGinfoHow much the log says; debug for detail
MERIDIAN_LOG_FORMATReadable textjson for log collectors

Ports and HTTPS

3099/tcp

The app, the API and every stream. Keep it on your home network.

3443/tcp

The same, over HTTPS. The one to forward if you expose the server yourself.

Behind your own reverse proxy, for example Caddy:

media.example.com {
  reverse_proxy your-server-address:3099
}

Then add the proxy's address to MERIDIAN_TRUSTED_PROXIES, so sign-in limits see each visitor's real address. Using your own certificate instead? Point MERIDIAN_TLS_CERT and MERIDIAN_TLS_KEY at the PEM files and forward 3443.

Remote access options

Settings, Remote Access covers all four. Each one runs between your devices and your server; none passes through us.

OptionChoose it whenGood to know
WireGuard on your router RecommendedYour router or NAS can run WireGuardFull speed, nothing public; Remote Access has steps for QNAP, Synology, UniFi and more
Direct port forwardingYou manage your own router and domainMantareel can ask the router itself (UPnP); add your own certificate to drop the browser warning
TailscaleYou want it working in minutesPrivate is device to device; public Funnel addresses run through Tailscale's relays, with their bandwidth limits
Cloudflare TunnelYou can't open any portCloudflare's terms restrict video on free plans

Performance

  • Direct play beats everything. Keep Prefer direct play on; screens that can play the original never touch the processor.
  • Graphics before processors. Intel graphics with Quick Sync convert 4K quietly; without them, conversion falls back to the processor.
  • Cap the conversions. MERIDIAN_MAX_TRANSCODE_SESSIONS keeps a small NAS responsive when everyone presses play at once.
  • HDR to standard range. Converting HDR for older screens currently uses the processor, at up to 1080p.
  • Fast storage for the data folder. An SSD for /var/lib/meridian makes browsing and artwork snappier on large libraries.

Data and backups

Everything Mantareel knows lives in the data folder: the database, artwork, previews and caches. Your films never move. From a terminal:

# a consistent snapshot, safe while Mantareel runs
docker exec mantareel meridian backup /var/lib/meridian/backup.tar.gz

To restore, use Restore from archive in Settings, Backups: it sets the current data aside first; restart Mantareel afterwards. On Linux or Windows you can instead stop the service and run meridian restore <archive> --force. Running a bigger household? Point MERIDIAN_DATABASE_URL at PostgreSQL.

Automation

API tokens

Settings, Security, API tokens. Choose Read only (safer) or Full access, and optionally the IP addresses allowed. Send it as Authorization: Bearer.

Webhooks

Settings, Connectors posts to Discord, Slack or any URL when scans start, finish or fail, titles are added, changed or removed, backups finish or fail, and playback stops.

Metrics

Prometheus reads /metrics with an admin's read-only token.

Trakt

Settings, Connectors marks what you finish as watched on Trakt.

Troubleshooting

You seeUsually becauseDo this
No posters or detailsNo TMDB key yetAdd it in Settings, Metadata
Other devices can't open the serverWrong address, or a firewallUse the server's home address with :3099; allow port 3099
Conversions load the processorGraphics not passed throughAdd /dev/dri or --gpus all; check Settings, Playback
4K HEVC won't play in Edge or the Windows appAn old HEVC Video ExtensionsUpdate it from the Microsoft Store
A TV code doesn't workCodes last five minutesAsk the TV for a new one
Stutters away from homeA slow upload, or a relayed route such as FunnelQuality steps down by itself; WireGuard or an open port is the fastest path
Lost the authenticator appTwo-factor can't be passedOn the server, run meridian disable-2fa <username>, then set it up again
Signed out after rebuilding the containerThe data folder wasn't keptMount /var/lib/meridian on a volume, as in the Compose file

Still stuck? Settings, Report a problem builds a report with the details we need, never your library, and hands it to your mail app.

Still stuckA person replies. Support