1. Preparation#
- The server needs to have Docker installed.
- Docker-compose should be able to run.
- Plex account.
2. Installation Tutorial#
2.1 Creating relevant directories#
2.2 Obtaining Plex token#
You can obtain a claim token by visiting https://www.plex.tv/claim to log your server into your Plex account, and copy and paste the token characters into the corresponding position in the docker-compose file below. Necessary operation.
2.3 Creating docker-compose file and running#
2.4 Opening corresponding ports, etc.#
Whether it is the local firewall or the firewall in the cloud platform control panel such as Alibaba Cloud, the corresponding ports should be opened. Among them, 32400 must be opened, and my colleague also opened 3005. Other ports are not opened because it is a VPS and does not require DLNA and GDM.
2.5 Access and check the result#
Check the result by accessing the Plex management page through the domain name.
3. Related issues#
3.1 Remote access is "indirect/relay"#
Because Docker is used for installation, the IP displayed by the network card allocated inside the container is an internal IP, so in the management interface's "corresponding server" - remote access, the internal IP is a 172-starting internal network, and the public external IP port may be 0.
Click on "Manually specify port" below, fill in the default: 32400, click apply, and after running, the problem will be solved. It will display "Full access outside your network".