Plex Media Server
| Description / name | Input element |
|---|---|
| Container Registry | |
| Container Configuration Root Path | |
| Global /movies Path | |
| Global /tv Path | |
| Timezone | |
| User ID | |
| Group ID | |
| Plex Media Server /config Path | |
| Plex Media Server /transcode Path | |
| Plex Media Server Host Port |
Personal media server that organizes and streams your movie, TV, and music collections to all your devices.
| Port | 32400 |
| Registry | ghcr.io/daemonless/plex |
| Daemonless | daemonless/plex |
| Source | daemonless/plex |
| Website | plex.tv |
Version Tags
| Tag | Description | Best For |
|---|---|---|
latest |
Upstream Binary. Built from official release. | Most users — recommended. |
Before deploying, ensure your host environment is ready. See the Quick Start Guide for host setup instructions, including the security model for host vs. container privileges.
Deployment
Save as compose.yaml, then run podman-compose up -d.
Warning
Exposing ports in AppJail means that your service can be reached from remote hosts. If that is not your intention, do not expose the ports and communicate with the service using the jail's IPv4 address or hostname assigned by the virtual network.
Save the files above, then run appjail-director up.
Experimental
Bastille's OCI support is experimental. It requires buildah and shares the host network stack (inherit). Mount volumes with --volume HOST JAIL; without it, image-declared volumes are stored under ${bastille_volumesdir}/${jail}.
Save as bastille-compose.yml, then run bastille up.
Access at: http://localhost:32400
Interactive Configuration
Parameters
Environment Variables
| Variable | Default | Description |
|---|---|---|
PUID |
1000 |
User ID for the application process |
PGID |
1000 |
Group ID for the application process |
TZ |
UTC |
Timezone for the container |
VERSION |
container |
Plex update channel (container, public, plexpass) |
PLEX_CLAIM |
`` | Claim token — get one at https://plex.tv/claim |
ADVERTISE_IP |
`` | URLs clients should use to reach the server, comma-separated, e.g. http://192.168.1.10:32400 (bridge networking) |
ALLOWED_NETWORKS |
`` | Networks allowed in without signing in, comma-separated, e.g. 192.168.1.0/24 |
Volumes
| Path | Description |
|---|---|
/config |
Configuration directory |
/transcode |
Transcode directory (Optional) |
/movies |
Movie library |
/tv |
TV series library |
Ports
| Port | Protocol | Description |
|---|---|---|
32400 |
TCP | Web UI |
First-time setup
An unclaimed Plex server only accepts its setup wizard from 127.0.0.1; from anywhere else
it answers "Not authorized". Set one of these before the first start:
ALLOWED_NETWORKSto your LAN (e.g.192.168.1.0/24), then openhttp://<host>:32400/web, sign in and finish the wizard. Devices on those networks can use Plex without signing in.PLEX_CLAIMto a token from https://plex.tv/claim. The container claims the server on first start; then sign in athttp://<host>:32400/web. Tokens expire 4 minutes after you get one: fetch it right before the first start.
Set ADVERTISE_IP to the address clients should use (e.g. http://192.168.1.10:32400), so
Plex doesn't advertise its container-internal IP.
PLEX_CLAIM, ADVERTISE_IP and ALLOWED_NETWORKS work as in the official Plex image.
Host networking (optional)
network_mode: host (--network host) additionally lets Plex apps on your LAN discover the
server (GDM) and enables DLNA. Use it instead of the 32400 port mapping where your platform
supports it.
Implementation Details
- Architectures: amd64
- User:
bsd(UID/GID set via PUID/PGID). Defaults to1000:1000. - Base: Built on
ghcr.io/daemonless/base(FreeBSD 15.1).
Need help? Join our Discord community.