Emby is a media server that you run yourself. Store your movies, TV shows, and music on your server, and Emby organizes them into libraries, automatically downloads cover art, descriptions, and cast information, and streams everything to your browser, smartphone, or TV. The core features are free. Some additional features, such as hardware transcoding, offline downloads, a live TV recorder, and built-in backup, are only available with the paid Emby Premiere subscription.
In this guide, we’ll show you two ways to install Emby: the easy way using your VPS’s One-Click Apps and the manual way using Docker Compose. Then you’ll upload your media, create libraries, connect apps, and set up accounts for family and friends. Only use Emby for media you have the rights to, such as your own recordings, digitized discs that you own, or freely licensed content.
A media server in a data center is especially useful if:
- You want your media collection to be available around the clock, without having to keep a computer or NAS running at home.
- Your home internet connection doesn’t have enough upload bandwidth to stream while you’re away or to multiple people at the same time. A server in a data center streams over its connection.
- You want to share your libraries with family or friends. Each person gets their own account on your server, with their own access permissions and parental controls.
- You already use the Emby apps or have Emby Premiere and just want to move your server to a different location.
A VPS is less suitable if Emby often needs to convert your videos, for example, 4K, HEVC, or HDR files for older devices. Our VPS plans don’t include a graphics card, so conversion runs entirely on the CPU. Emby says that transcoding is very resource-intensive. Hardware transcoding with a graphics card, which also requires Emby Premiere, isn’t available on a VPS. A large collection also requires a correspondingly large amount of server storage.
In addition to Emby, Jellyfin and Plex are also available as One-Click Apps. Jellyfin began in 2018 as a free fork of Emby, so the interface and libraries are similar. Emby itself has not been open source since then.
| Emby | Jellyfin | Plex | |
|---|---|---|---|
| Cost | Server is free; some features require Emby Premiere | Completely free, open source | Server is free; remote video playback requires Plex Pass or Remote Watch Pass |
| Account | Users are stored on your server; an Emby Connect account is optional | Users are stored on your server | A Plex account is required; sign-in is through plex.tv |
| Apps | Many apps; some require Emby Premiere or a one-time unlock per app | Jellyfin apps for Android, iOS, smart TVs, and streaming devices | Plex apps for smartphones, smart TVs, consoles, and streaming boxes |
| Hardware transcoding | Requires Emby Premiere and a compatible graphics card | No subscription required; needs a compatible graphics card | Requires Plex Pass and a compatible graphics card |
If you want to stream using free software without a subscription, Jellyfin is a better fit. If you already have Emby Premiere or use the Emby apps on your devices, Emby is the obvious choice. On a VPS without a graphics card, the difference in hardware transcoding doesn’t matter.
The quickest way to get your own media server is through your VPS’s One-Click Apps. ZapX sets up your domain and HTTPS for you, so you don’t need the console to install it.
- A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. For instructions, see Set Up One-Click Apps.
- At least 2 GB of RAM if Emby will convert videos. According to Emby, 512 MB is enough on Linux if no conversion is needed.
- Around 2 GB of storage for the software, plus enough space for your media files. Movies and TV shows can quickly take up several hundred gigabytes.
- Open your VPS in the ZapX Dashboard and go to the One-Click Apps tab.
- Search for Emby in the App catalog and click Install app.
- Leave Use a custom subdomain or zap.cloud enabled and choose an address. With a domain, Emby is available over HTTPS; without one, it’s only available over HTTP.
- No other details are required. Click Queue installation. The app will be online in one to two minutes.
Emby doesn’t create an admin account with a password in advance. Until you finish the setup wizard, anyone who knows the address can take over the server. Open the app at its address as soon as it’s installed and create your admin account with a strong password in the wizard.
The Emby setup wizard starts the first time you visit:
- Language: Choose the interface language under “Preferred display language” and click “Next.”
- Admin account: Under “Create Your First User,” the username
abcis already entered. This is the container’s internal user. Replace it with a name of your choice and set a strong password under “New password.” This first account is your admin account. - Media libraries: You can create libraries now under “Setup Media Libraries.” It’s easier to skip this step by clicking “Next” and create the libraries after you’ve uploaded your media.
- Remote access: “Enable automatic port mapping” sets up port forwarding via UPnP on a home router. You don’t need this on a VPS.
- Terms of use: Check “I accept the terms of use” and click “Next.”
Finally, click “Finish” and sign in with your admin account.
The One-Click App includes two media folders: /movies for movies and /tvshows for TV shows. For instructions on getting your files there, see “Upload Movies and TV Shows” below.
Libraries, metadata, user accounts, parental controls, and browser playback work without a subscription. Settings that include the notice “This feature requires an active Emby Premiere subscription” and the “Get Emby Premiere” button in the top-right corner indicate features that require a subscription. These include hardware transcoding, offline downloads, DVR for live TV, Cinema Intros, and backup using “Backup & Restore.” Playback in some apps, such as those for smartphones and TVs, is limited without Premiere or requires a one-time unlock in the app. See the Emby Premiere page for details on exactly which features are included.
To check whether an update is available for your installation, open the app settings (the gear icon), go to App update, and click Check for updates. If a new version is available, install it by clicking Apply update. Your settings, users, and media files will remain intact because they’re stored in separate volumes.
Emby’s built-in “Backup & Restore” feature requires Emby Premiere. Without a subscription, you can back up your settings by stopping the app and copying the volume ending in _emby-config, as described below under “Back Up Your Data.” Always keep a separate copy of your media files in another location as well.
You can change the app’s address under App actions. You can also stop, reinstall, or uninstall the app there.
The rest of this guide describes manual installation using the console and Docker Compose. This is useful, for example, if you want to integrate Emby into an existing server environment or store your media in custom folders. It uses the LinuxServer.io image, which is also used by the One-Click App. See the image instructions.
- A Linux server running Debian or Ubuntu that you can access via SSH.
- Docker with the Compose plugin. See our guide to Set Up Docker for instructions on installing Docker.
- To access Emby over HTTPS, a domain or subdomain with an A record pointing to your server’s IP address (for example,
emby.example.com).
| Hardware | Minimum | Recommended |
|---|---|---|
| RAM | 512 MB without conversion | 2 GB or more if Emby will convert videos |
| CPU | 2 cores | The more cores, the better, if Emby needs to convert videos |
| Storage | Around 2 GB for the image, plus your media library | Additional space for metadata, images, and the transcoding cache; according to LinuxServer.io, this can reach 50 GB or more |
The RAM figures come from Emby’s system requirements. The CPU resources required for conversion depend heavily on your videos’ resolution and format.
Only SSH and the HTTPS reverse proxy need to be accessible from outside. With ufw, the commands are:
ufw allow OpenSSH
ufw allow 80/tcp
ufw allow 443/tcp
ufw enable
Don’t open port 8096, which Emby listens on. For more information, see Managing the Firewall on Linux.
If Docker publishes a port on all network interfaces, it adds its rules without going through ufw. The port would then be accessible from outside despite the firewall. For this reason, bind port 8096 to 127.0.0.1, as shown in the next step.
Create a directory with subfolders for configuration and media, then create a compose.yaml file in it:
mkdir -p /opt/emby/config /opt/emby/media/movies /opt/emby/media/tvshows /opt/emby/media/music
chown -R 1000:1000 /opt/emby
cd /opt/emby
nano compose.yaml
Add this content:
services:
emby:
image: lscr.io/linuxserver/emby:latest
container_name: emby
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Berlin
volumes:
- ./config:/config
- ./media/movies:/data/movies
- ./media/tvshows:/data/tvshows
- ./media/music:/data/music
ports:
- 127.0.0.1:8096:8096
restart: unless-stopped
The key lines:
image: The Emby image from LinuxServer.io. Thelatesttag provides stable versions of Emby.PUIDandPGID: The user Emby runs as inside the container. It needs to be able to read your media folders, so/opt/embyabove is owned by the user with ID1000.TZ: The time zone, for example, for scheduled tasks../config: The database, settings, users, and metadata. You need to back up this folder../media/...: Your movies, TV shows, and music. Inside the container, the folders are named/data/movies,/data/tvshows, and/data/music. Add more folders using the same pattern.ports: Emby is only accessible on the server itself via port8096. Access from outside will go through the reverse proxy later.
You don’t need port 8920 for HTTPS directly in Emby; the reverse proxy handles that. Start Emby from the same directory:
docker compose up -d
You can check whether the container is running with docker compose ps and view the logs with docker compose logs -f.
Emby isn’t protected until you complete the setup wizard. Set up Emby before making it publicly accessible. The easiest way is to use an SSH tunnel from your own computer:
ssh -L 8096:127.0.0.1:8096 root@SERVER_IP
With the connection active, open http://localhost:8096 in your browser and follow the setup wizard as described above under “First Visit: Setup Wizard.” Later, select /data/movies, /data/tvshows, and /data/music as your media folders.
For ongoing use and the Emby apps, make Emby accessible over HTTPS using a domain. For the basics, see Set Up an nginx Reverse Proxy and Create an SSL Certificate (Let's Encrypt). Here’s an nginx server block:
server {
listen 80;
server_name emby.example.com;
client_max_body_size 100M;
location / {
proxy_pass http://127.0.0.1:8096;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off;
}
}
proxy_buffering off passes video data straight through instead of buffering it. The Upgrade and Connection lines forward the WebSocket connection, which Emby uses for live updates and remote control between devices. Then obtain the certificate with certbot --nginx -d emby.example.com. Certbot will add HTTPS and the HTTP redirect to the block.
Then set three values in Emby under “Network”:
- “External domain”: Your domain without
https://, for example,emby.example.com. - “Secure connection mode”: “Handled by reverse proxy.”
- “Read proxy headers to determine client IP addresses”: “Yes.” This lets Emby see your viewers’ actual addresses instead of the proxy’s address.
It’s simpler with Caddy: Caddy obtains the certificate itself and automatically forwards WebSockets. A single entry, emby.example.com { reverse_proxy 127.0.0.1:8096 }, in the Caddyfile is enough.
Back up your data before every update and regularly in between. Without Emby Premiere, copy the configuration folder. Stop Emby first so the database isn’t backed up while it’s being written to:
cd /opt/emby
docker compose stop
tar -czf /root/emby-config-$(date +%F).tar.gz config
docker compose start
With Emby Premiere, you can also back up your settings using “Backup & Restore.” None of these backups include your media files. Regularly copy the media folder to another system, for example, using rsync:
rsync -a /opt/emby/media/ BACKUP_USER@BACKUP_HOST:/backup/emby-media/
Create a backup first, then download the new version:
cd /opt/emby
docker compose pull
docker compose up -d
Your settings and libraries will remain intact because they’re stored in the config folder. Remove old images afterward with docker image prune. If you want to control updates yourself, use a fixed version instead of latest, for example, 4.10.2, and change it when needed. See the LinuxServer.io release notes for details about what’s changed.
Whether you’re using the One-Click App or a manual installation, the process is almost the same from here on; only the folders differ.
Upload your files to the server via SFTP as root. For instructions on connecting, see Connect via SFTP.
- One-Click App: The media folders are in Docker volumes whose names end in
_emby-moviesand_emby-tvshows. You can find the exact names in the console usingdocker volume ls | grep emby. Upload files to the_datasubfolder of the appropriate volume. For movies, that’s/var/lib/docker/volumes/<Name des Volumes>/_data. In Emby, these folders are named/moviesand/tvshows. - Manual installation: Upload movies to
/opt/emby/media/movies, TV shows to/opt/emby/media/tvshows, and music to/opt/emby/media/music.
Emby can read files you upload as root without any extra steps. However, Emby can’t write to the One-Click App’s media folders because they’re owned by root. If you want to delete media from Emby or have it save subtitles next to videos, assign the folder to Emby’s user, for example, with chown -R 1000:1000 /var/lib/docker/volumes/<Name des Volumes>/_data.
Emby identifies your media by its file and folder names. Put each movie in its own folder named with the title and release year, and put each TV season in a separate subfolder:
Big Buck Bunny (2008)/Big Buck Bunny (2008).mp4
Serienname (2018)/Season 01/Serienname S01E01.mkv
Without a year or with an unusual title, Emby can easily match the wrong movie and display someone else’s cover art and description. More examples are available in the “Emby movie naming guide,” which Emby links to when you create a library.
As an admin, create libraries by clicking the gear in the top-right corner, opening “Library,” and selecting “New Library.” Choose a content type under “Content type,” such as “Movies” or “TV shows,” enter a name under “Display name,” and add the appropriate folder under “Folders” by clicking “Add”: /movies or /tvshows for the One-Click App, or /data/movies, /data/tvshows, or /data/music for a manual installation. Click “OK” to create the library, and Emby will scan the files immediately. Later, Emby will find new files when you select “Scan Library Files.”
The One-Click App only includes folders for movies and TV shows. To create additional libraries, such as music or kids’ movies, create subfolders. Libraries must not overlap: a library pointed at /movies also scans all of its subfolders. Create the folders side by side instead, with a separate folder for each library:
/movies/Moviesfor the “Movies” library/movies/Kidsfor the “Kids” library/movies/Musicfor a library with the “Music” content type
Create the folders in the volume via SFTP and move any existing movies into the appropriate folder. Then replace /movies in the existing library with /movies/Movies, and create a new library for each of the other folders.
You can use Emby directly in your browser at your installation’s address. Emby apps are available for Android, iOS, Android TV, Fire TV, Apple TV, Samsung and LG smart TVs, consoles, and desktop, among others. See the Emby download page for an overview.
Enter your installation’s address as the server address in the app, for example, https://emby.example.com, and sign in with your account. Automatic server discovery on your home network won’t find a server in a data center, so you’ll need to enter the address manually. Alternatively, link your account to a free Emby Connect account under “Profile.” You can then sign in to the apps with that account without needing to know the address.
As an admin, create additional accounts by clicking the gear, opening “Users,” and selecting “New User.” For each user, you can set, among other things:
- Which libraries the person can see in the “Access” tab. “Enable access to all libraries” is enabled by default.
- Whether transcoding is allowed. Use “Allow video transcoding to a compatible format, if necessary, during media playback” to control whether Emby can convert videos for that person. On a VPS without a graphics card, this is the most important way to limit CPU load. Without transcoding, some devices may not be able to play certain files.
- How much bandwidth a stream can use with “Remote streaming bitrate limit (Mbps).”
- Parental controls in the “Parental Control” tab, for example, with “Maximum allowed parental rating.”
An account only gets admin rights if you enable “Allow this user to manage the server.” Only grant these rights to people who manage the server with you. To hide a user list from the sign-in page, enable “Hide this user from login screens when connected remotely” for each account.
- No graphics card: Transcoding runs on the CPU only. Files your devices can play directly, such as H.264 videos in MP4, put the least load on the server. Under “Transcoding,” set a limit using “Max transcoding resolution” and use “Enable throttling” to slow down conversion if it gets too far ahead of the player.
- Storage: Your media is stored on the server. With the One-Click App, more storage requires a larger VPS plan.
- Premiere features: Hardware transcoding, offline downloads, DVR, and built-in backup require Emby Premiere.
- No DLNA or home network discovery: DLNA and automatic server discovery only work on a local network, so they aren’t available on a server in a data center.
You’ve set up Emby on your server, secured your admin account, uploaded media, created libraries, and learned how to connect apps, manage accounts, and back up your data. You now have your own media server that’s available around the clock, and you can decide for yourself whether you need Emby Premiere’s additional features.
Prefer not to deal with Docker? Take the easy route with the One-Click App, as described above under “The Easy Way: Emby as a One-Click App.” You can set up your domain and HTTPS and manage updates with just a few clicks.
For more information, visit the Emby website and the Emby Support section.
