Installation

projo runs in a Docker container, with your video folders mounted read-only.

Requirements

A Linux x86_64 or arm64 machine with Docker and Docker Compose v2. A Synology NAS works.

Your videos on a disk this machine can read.

A free TMDB API key from themoviedb.org (Settings → API). Without it, no posters and no identification.

A recent browser: Chrome, Edge, Firefox, Safari, on a computer or a phone.

Transcoding runs on the CPU by default. Its cache takes up to 10 GB in /data, the live TV cache up to 20 GB (both configurable).

Install

1. Create docker-compose.yml

In an empty folder for projo:

services:
  projo:
    image: ghcr.io/leomartindev/projo:latest
    ports:
      - '8080:8080'
    volumes:
      - ./projo-data:/data
      - /srv/movies:/media/movies:ro
      - /srv/shows:/media/shows:ro
    environment:
      - TRUST_PROXY=false
    stop_grace_period: 30s
    restart: unless-stopped

2. Adapt it

./projo-data:/data
Everything projo writes: database, images, caches, app versions. The only folder to back up.
…:/media/…:ro
Your videos, read-only, one line per folder. You pick them later in the interface.
8080:8080
The published port. For another one, change the first number: 9000:8080.
TRUST_PROXY
false when browsers connect to projo directly. See reverse proxy.
stop_grace_period
Gives projo 30 s to shut down cleanly (playback, running jobs).

3. Start it

docker compose up -d
docker compose logs -f projo   # Ctrl+C to quit, projo keeps running

User and permissions

Inside the container, projo runs as user uid 1000, gid 1000, never as root. On startup it takes ownership of /data if needed, then drops root privileges.

Your videos must be readable by uid 1000. Check with ls -ln /srv/movies. Otherwise, make them world-readable, or run projo as the user who owns the files:

chmod -R o+rX /srv/movies
# or, in docker-compose.yml:
    user: '1001:1001'   # uid:gid owning your videos

With user:, nothing is changed on startup: projo-data must belong to that user (sudo chown -R 1001:1001 projo-data).

Hardware transcoding

Optional · Intel iGPU

On an x86_64 machine with an Intel integrated GPU, projo can transcode with VAAPI instead of the CPU. If the GPU refuses a file, projo falls back to the CPU on its own and says so.

  1. Find the group that owns the render node: ls -ln /dev/dri (4th column of renderD128). On Synology: grep videodriver /etc/group.
  2. In docker-compose.yml, add:
    devices:
      - /dev/dri/renderD128:/dev/dri/renderD128
    group_add:
      - '937'   # the number found in step 1
  1. docker compose up -d, then turn on Administration › Settings › Playback › Hardware transcoding (VAAPI).

Behind a reverse proxy

For access from outside with HTTPS and a domain name, put projo behind a reverse proxy (Caddy, Traefik, Nginx Proxy Manager…) and set TRUST_PROXY=true. projo then knows the real IP of each visitor and its public address, both needed to sign in.

Never enable TRUST_PROXY if projo can be reached without going through the proxy: only publish the port locally.

    ports:
      - '127.0.0.1:8080:8080'
    environment:
      - TRUST_PROXY=true

Example with Caddy, automatic HTTPS certificate:

media.example.com {
	reverse_proxy 127.0.0.1:8080
}

With Nginx: forward Host, X-Forwarded-For and X-Forwarded-Proto, turn off buffering (proxy_buffering off) and allow 10 MB uploads (client_max_body_size 10m).

First launch

  1. Open http://<machine>:8080.
  2. Create the administrator account, then pick the folders of the first library in /media.
  3. The first scan starts: files show up as it goes.

Then, from the avatar → Administration: add more libraries, invite your family (Accounts → single-use invitation link, valid for 7 days), tune playback.

TMDB key

Administration → Settings → Metadata → TMDB API key: paste the API key or the read access token. projo checks it, then retries identification of every waiting file.

Files projo cannot identify with certainty go to To review. A wrongly identified title is fixed from its page (⋮ menu → Fix the match), and projo remembers it.

Naming your files

projo renames and moves nothing: it reads the title, year and episode number from the names. Usual release names are fine (1080p, x265, MULTi, VFF, [group]… are ignored).

Movies: Title (year)

Movies/Inception (2010).mkv
Movies/Inception (2010)/Inception.2010.1080p.BluRay.x264-GRP.mkv
Movies/Blade Runner (1982) - Director's Cut.mkv

Shows: one folder per show, one per season

Shows/Breaking Bad (2008)/Season 01/Breaking.Bad.S01E01.mkv
Shows/Breaking Bad (2008)/Specials/Breaking.Bad.S00E01.mkv
  • The year is optional but separates titles with the same name: Dune (1984) / Dune (2021).
  • An id skips the search: Inception (2010) {tmdb-27205}.mkv or Breaking Bad (2008) [tmdbid-1396].
  • Editions: {edition-Extended Cut}, or Director's Cut, IMAX… after a dash. Two files of the same movie are two versions of it.

Where your files come from

Downloads

A file being written stays Pending until it is complete and readable. In qBittorrent, turn on “Append .!qB extension to incomplete files”; with Radarr or Sonarr, let them import finished files. The file then shows up within seconds.

Network shares

On an SMB or NFS share mounted on the host, changes are not reported: projo sees them at the periodic scan (every 15 minutes, set per library) or with the Scan button.

Large libraries

On Linux, watching folders uses a limited resource of the host. If the logs say watching is unavailable, raise the limit (periodic scans go on either way):

echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/90-projo.conf
sudo sysctl --system

Several disks

If a disk stops answering (mergerfs, Unraid, one mount per disk), its files move to Missing and the notifications say so. They come back as they were with the disk. After 30 days they are purged, but what your profiles watched, started or added to My list is kept and found again when the files return.

Changing a path

If your videos move on the host, change only the left side of the volume and keep the same path under /media. Otherwise, replace the folder in Administration → Media → Libraries: identified titles keep their progress, and corrections follow the files whose path under the folder does not change.

Live TV

Administration → Media → Live TV: add your source (an M3U playlist, an Xtream Codes account or a Freebox), then turn on the channel groups to offer. projo ships no channels. The server relays every channel: browsers never contact the provider. Access to live TV is set per profile.

Freebox

The box answers and streams its channels on its local network only. The container must be on that network: replace ports: with network_mode: host.

services:
  projo:
    network_mode: host   # instead of ports:

Pause and rewind

The server keeps the last 30 minutes of each channel being watched in cache/: about 0.5 to 2 GB per channel, 20 GB at most in all. Both are set in Administration → Settings → Playback.

Updates

The application

Administration → Settings → Updates. projo checks every day, shows the release notes and installs in one click. The database is backed up first; if the new version does not start within 60 s, projo goes back to the previous one on its own.

The Docker image

Rarely needed: the Updates page says so when a version needs a newer image.

docker compose pull
docker compose up -d

Backup and restore

All of projo’s state is in projo-data:

db/projo.db     the database: accounts, progress, metadata, settings
db/backups/     automatic backups and exports
images/         posters, backdrops, uploaded images
app/            installed application versions
cache/          regenerated, no need to back it up

Back up

  1. Administration → Settings → General → Export the database: a consistent copy, without stopping projo.
  2. Copy projo-data without cache/: rsync -a --exclude cache/ projo-data/ /backup/projo-data/.

Restore

  1. docker compose stop.
  2. Put the backed-up folder in place of projo-data. From an export: copy it to db/projo.db and delete db/projo.db-wal and db/projo.db-shm.
  3. docker compose start. Nothing is lost as long as the paths under /media stay the same.

A file does not show up

Everything can be diagnosed from the admin, without a terminal:

Pending
Seen but not shown yet: being written, unreadable, damaged or too small. The reason is given.
To review
Shown under its file name, for lack of a certain identification. “Identify” searches for the right title.
Missing
Gone from the disk. It comes back as it was if it returns to the same place.
Jobs
Scans, analyses and identifications queued, running or failed, with “Retry”.

In none of these lists? Check the extension (mkv mp4 m4v mov avi webm ts m2ts wmv), that the folder is part of a library and that uid 1000 can read it. As a last resort: docker compose logs projo.

A question, a bug?

Open an issue