-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
71 lines (59 loc) · 2.01 KB
/
Copy pathcompose.yaml
File metadata and controls
71 lines (59 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: plex
x-daemonless:
title: "Plex Media Server"
icon: ":simple-plex:"
category: "Media Servers"
description: "Personal media server that organizes and streams your movie, TV, and music collections to all your devices."
upstream_url: "https://github.com/daemonless/plex"
web_url: "https://plex.tv/"
user: "bsd"
mlock: false
appjail: true
docs:
env:
PUID: "User ID for the application process"
PGID: "Group ID for the application process"
TZ: "Timezone for the container"
VERSION: "Plex update channel (container, public, plexpass)"
PLEX_CLAIM: "Optional: Claim token — get one at https://plex.tv/claim"
volumes:
/config: "Configuration directory"
/transcode:
desc: "Transcode directory"
optional: true
/movies:
desc: "Movie library"
/tv:
desc: "TV series library"
ports:
32400: "Web UI"
notes: |
## Host Networking
Plex requires `network_mode: host` on FreeBSD Podman. Bridge networking causes the Plex setup
wizard to reject all connections with "Not authorized" because it only allows access from
`127.0.0.1`, and bridge networking makes all connections appear to come from the gateway IP.
With host networking, ports are bound directly on the host — no `ports:` mapping needed.
## Initial Setup
The Plex setup wizard must be accessed from `localhost`. After starting the container, create
an SSH tunnel from your local machine:
```
ssh -L 32400:localhost:32400 <your-host>
```
Then open `http://localhost:32400/web` in your browser to complete setup.
services:
plex:
image: ghcr.io/daemonless/plex:latest
container_name: plex
restart: unless-stopped
network_mode: host
environment:
- PUID=1000
- PGID=1000
- TZ=UTC
- VERSION=container
- PLEX_CLAIM=
volumes:
- /path/to/containers/plex:/config
- /path/to/transcode:/transcode # optional
- /path/to/movies:/movies
- /path/to/tv:/tv