Quick start
Install the server, open it in a browser, answer the setup, and watch. It takes about twenty minutes, most of it the first scan working on its own.
Before you begin
You need four things. Most households already have them.
- A machine that stays on
- A NAS, a mini PC, a Raspberry Pi 4 or 5, a Linux box, a Windows PC or a VPS. It must be 64-bit; 32-bit ARM is not supported. Two cores and 2 GB of memory are enough.
- Your films and shows
- As files on that machine, or on a share it can read. Leyla mounts them read-only and never renames, moves or writes to them.
- A browser on a computer
- For the setup. Phones and TVs watch; they do not set a server up.
- An internet connection
- For posters and details from TMDB, TVmaze, fanart.tv and OMDb. No keys are needed, and your files stay at home.
Tip If the machine has an SSD, keep Leyla’s data folder on it. Your media can stay on spinning disks.
1. Install the server
Leyla is one container with its database inside. On any Linux machine with Docker, run:
$ mkdir -p ~/leyla && cd ~/leyla
$ curl -fsSLo compose.yaml https://leyla.media/compose.yaml
$ id # your PUID and PGID
$ nano compose.yaml # set PUID, PGID and your media folder: the lines marked CHANGE
$ docker compose up -d
On a Synology, QNAP, unRAID, TrueNAS, OpenMediaVault or TerraMaster box, a Raspberry Pi, a Linux package or Windows, follow the section for your box in Install the server, then come back here.
2. Open it in a browser
On any computer on your home network, open the machine’s address with :10001 on the end:
http://<the machine’s address>:10001
The first start unpacks and prepares the database. On a small box, give it about a minute before the page answers.
Enter the setup code
The page first asks for a one-time setup code, three film words and a seat like Midnight Velvet Marquee · 4719, so nobody else on your network can claim the server before you do. Leyla prints it when it starts:
| Install | In the log | As a file |
|---|---|---|
| Docker or a NAS | docker logs leyla, or the container’s log in the NAS’s app | setup-code in the data folder |
| Linux package | sudo journalctl -u leyla | /var/lib/leyla/data/setup-code |
| Windows | C:\ProgramData\Leyla\logs | C:\ProgramData\Leyla\data\setup-code |
A restart before the setup is finished makes a new code. Once the first account exists, the code is gone for good.
3. Answer the setup
The setup asks one question per screen. Each has an answer that suits most homes, and the table says what skipping leaves you with. You can stop halfway: Home shows Finish setting up until you are done. You can change any answer later under Administration › Settings.
| Screen | What it asks | Skip? |
|---|---|---|
| Your server | Name the server and make your account. You become its administrator. | No |
| Your free trial | Link the server to your email. Without a trial or plan, Leyla adds nothing it scans. The beta is free until December 31, 2026. No card needed. | No |
| Where Leyla keeps what it knows | Leyla’s own database, or a PostgreSQL server you already run. See Another PostgreSQL server. | Yes: Leyla’s own |
| What this server can do | Shows the cores, memory and video hardware, and asks how much of the machine Leyla may use. People watching always come first. | Yes: a fair share |
| Look after your disks | Whether disks may sleep, and whether Leyla rereads every file to catch silent damage. The reread is slow; the screen says how slow. | Yes: as they came |
| Name who is on screen? | Yes downloads the faces pack, so pausing names the actors. See Who’s on screen. | Must answer |
| Where details come from | Leyla’s shared metadata service, or your own TMDB, OMDb and fanart.tv keys. | Yes: Leyla’s |
| Plugins | Turn the TMDB, TVmaze and fanart.tv plugins on or off, and add more. See Plugins. | Yes |
| Coming from another server? | Bring people, libraries, history and playlists from Plex, Emby or Jellyfin. See Move from another server. | Yes |
| Where is your media? | Pick your folders and say whether each holds films or TV. See Name your files. | Yes |
| Use Sonarr or Radarr? | Connect them so requests download. See Sonarr and Radarr. | Yes |
| When someone asks for a title | Approve each request, approve only series, or let everything download. | Yes: you approve each |
| When should Leyla study your files? | Leyla reads each file once for chapters, skip intro, volume and subtitles. Choose when: as files arrive, in quiet hours, or on first play. | Yes: as files arrive |
| Subtitle languages | Disc subtitles are pictures. Leyla turns them into text, one small download per language. | Yes: English only |
| Local models | Optional extras that run on your machine, such as captions from speech and search by meaning. Only those that fit your memory are offered. | Yes: none |
| Keep backups | Where, how often and how many. See Backups and recovery. | Yes: daily, seven kept |
| Keep Leyla up to date? | Install updates on their own when nobody is watching, or ask first. See Updates. | Must answer |
| Daily reports | Send us one anonymous count a day of what played and how, or not. See Privacy. | Must answer |
| Hear about problems | Your bell in Leyla rings already. Add ntfy, Gotify, Discord, Telegram, email or a webhook. See Hear about problems. | Yes: the bell only |
| Languages for new people | The starting languages for new people. Each can change their own. | Yes |
| Reach it from outside | Home only, a proxy or tunnel, a forwarded port, or a VPN. See Watch away from home. | Yes: home only |
| How do people sign in? | Passwords in Leyla, your OpenID Connect provider, or LDAP. See Sign in with OpenID Connect. | Yes: passwords |
| Who else will watch? | Make an invitation link. See People and accounts. | Yes |
| Get the apps | Where to get the app for each screen. | Yes |
| You’re ready | A summary of what is set, with a link to change each. |
A library starts scanning as soon as you add it. Titles appear first, then they play, then posters arrive. You can watch before it finishes.
4. Watch
- In a browser
- Open the same address. The server serves the web app, so it is always the server’s own version.
- Android, Android TV, Fire TV
- The app finds your server on the home network. On a TV you type a code on your phone, not a password on a remote.
- Every other screen
- Chromecast, Hisense, Roku, Kodi, iPhone and iPad each have a section in Apps and screens. LG and Samsung are in review at their stores.
- Everyone else in the house
- They open the invitation link, choose a name and a password, and answer three questions once: the language they listen in, when they want subtitles, and the language they read them in. A shared TV asks Who’s watching?, with an optional PIN per person.
Next steps
Something missing or wrong here? Tell us.