From 12a4dcfc243541ac984509908137a11fb75e74dd Mon Sep 17 00:00:00 2001 From: Eric Nemchik Date: Sun, 3 May 2020 14:12:13 -0500 Subject: [PATCH 1/2] EXPOSE all documented ports https://support.plex.tv/articles/201543147-what-network-ports-do-i-need-to-allow-through-my-firewall/ Update docs for new port info --- Dockerfile | 2 +- Dockerfile.aarch64 | 2 +- Dockerfile.armhf | 2 +- README.md | 14 ++++++++++---- readme-vars.yml | 14 ++++++++++---- 5 files changed, 23 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0a03b3b..f06bbaf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,5 +52,5 @@ RUN \ COPY root/ / # ports and volumes -EXPOSE 32400/tcp 3005/tcp 8324/tcp 32469/tcp 1900/udp 32410/udp 32412/udp 32413/udp 32414/udp +EXPOSE 32400/tcp 1900/udp 3005/tcp 5353/udp 8324/tcp 32410/udp 32412/udp 32413/udp 32414/udp 32469/tcp VOLUME /config diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index 58d2010..6590bad 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -49,5 +49,5 @@ RUN \ COPY root/ / # ports and volumes -EXPOSE 32400/tcp 3005/tcp 8324/tcp 32469/tcp 1900/udp 32410/udp 32412/udp 32413/udp 32414/udp +EXPOSE 32400/tcp 1900/udp 3005/tcp 5353/udp 8324/tcp 32410/udp 32412/udp 32413/udp 32414/udp 32469/tcp VOLUME /config diff --git a/Dockerfile.armhf b/Dockerfile.armhf index 5bd94e5..471eb25 100644 --- a/Dockerfile.armhf +++ b/Dockerfile.armhf @@ -49,5 +49,5 @@ RUN \ COPY root/ / # ports and volumes -EXPOSE 32400/tcp 3005/tcp 8324/tcp 32469/tcp 1900/udp 32410/udp 32412/udp 32413/udp 32414/udp +EXPOSE 32400/tcp 1900/udp 3005/tcp 5353/udp 8324/tcp 32410/udp 32412/udp 32413/udp 32414/udp 32469/tcp VOLUME /config diff --git a/README.md b/README.md index 717d442..dedf4b0 100644 --- a/README.md +++ b/README.md @@ -137,11 +137,16 @@ Will set the environment variable `PASSWORD` based on the contents of the `/run/ ``` -p 32400:32400 \ - -p 32400:32400/udp \ - -p 32469:32469 \ - -p 32469:32469/udp \ + -p 1900:1900/udp \ + -p 3005:3005 \ -p 5353:5353/udp \ - -p 1900:1900/udp + -p 8324:8324 \ + -p 32410:32410/udp \ + -p 32412:32412/udp \ + -p 32413:32413/udp \ + -p 32414:32414/udp \ + -p 32469:32469 + ``` The application accepts a series of environment variables to further customize itself on boot: @@ -273,6 +278,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64 ## Versions +* **03.05.20:** - Update exposed ports and example docs for bridge mode. * **23.03.20:** - Remove udev hack (no longer needed), suppress uuid error in log during first start. * **04.12.19:** - Add variable for setting PLEX_CLAIM. Remove `/transcode` volume mapping as it is now set via plex gui and defaults to a location under `/config`. * **06.08.19:** - Add variable for setting UMASK. diff --git a/readme-vars.yml b/readme-vars.yml index 5868762..034f1bd 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -40,11 +40,16 @@ optional_parameters: | ``` -p 32400:32400 \ - -p 32400:32400/udp \ - -p 32469:32469 \ - -p 32469:32469/udp \ + -p 1900:1900/udp \ + -p 3005:3005 \ -p 5353:5353/udp \ - -p 1900:1900/udp + -p 8324:8324 \ + -p 32410:32410/udp \ + -p 32412:32412/udp \ + -p 32413:32413/udp \ + -p 32414:32414/udp \ + -p 32469:32469 + ``` The application accepts a series of environment variables to further customize itself on boot: @@ -92,6 +97,7 @@ app_setup_block: | # changelog changelogs: + - { date: "03.05.20:", desc: "Update exposed ports and example docs for bridge mode." } - { date: "23.03.20:", desc: "Remove udev hack (no longer needed), suppress uuid error in log during first start." } - { date: "04.12.19:", desc: "Add variable for setting PLEX_CLAIM. Remove `/transcode` volume mapping as it is now set via plex gui and defaults to a location under `/config`." } - { date: "06.08.19:", desc: "Add variable for setting UMASK." } From 7fd3743bd8359a06984a12f43edd8471249161b2 Mon Sep 17 00:00:00 2001 From: Eric Nemchik Date: Sat, 9 May 2020 11:54:39 -0500 Subject: [PATCH 2/2] Update readme --- README.md | 5 ++++- readme-vars.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dedf4b0..5e70c94 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,10 @@ Will set the environment variable `PASSWORD` based on the contents of the `/run/ ## Optional Parameters -*Special note* - If you'd like to run Plex without requiring `--net=host` (`NOT recommended`) then you will need the following ports in your `docker create` command (you need to set PLEX_CLAIM to claim a server set up with bridge networking): +If you want to run the container in bridge network mode (instead of the recommended host network mode) you will need to specify ports. +The [official documentation for ports](https://support.plex.tv/articles/201543147-what-network-ports-do-i-need-to-allow-through-my-firewall/) lists 32400 as the only required port. +The rest of the ports are optionally used for specific purposes listed in the documentation. +If you have not already claimed your server (first time setup) you need to set `PLEX_CLAIM` to claim a server set up with bridge networking. ``` -p 32400:32400 \ diff --git a/readme-vars.yml b/readme-vars.yml index 034f1bd..f4f31bc 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -36,7 +36,10 @@ opt_param_env_vars: - { env_var: "PLEX_CLAIM", env_value: "", desc: "Optionally you can obtain a claim token from https://plex.tv/claim and input here. Keep in mind that the claim tokens expire within 4 minutes."} optional_parameters: | - *Special note* - If you'd like to run Plex without requiring `--net=host` (`NOT recommended`) then you will need the following ports in your `docker create` command (you need to set PLEX_CLAIM to claim a server set up with bridge networking): + If you want to run the container in bridge network mode (instead of the recommended host network mode) you will need to specify ports. + The [official documentation for ports](https://support.plex.tv/articles/201543147-what-network-ports-do-i-need-to-allow-through-my-firewall/) lists 32400 as the only required port. + The rest of the ports are optionally used for specific purposes listed in the documentation. + If you have not already claimed your server (first time setup) you need to set `PLEX_CLAIM` to claim a server set up with bridge networking. ``` -p 32400:32400 \