Skip to content

Commit ae8e693

Browse files
authored
Merge pull request plone#1357 from plone/listenport
Document LISTEN_PORT variable
2 parents dc8b6a5 + d978bcb commit ae8e693

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/install/containers/images/backend.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,25 @@ We encourage users of the `Plone` images to familiarize themselves with the opti
4545
| `SECURITY_POLICY_IMPLEMENTATION` | `security-policy-implementation` | `C` |
4646
| `VERBOSE_SECURITY` | `verbose-security` | `false` |
4747
| `DEFAULT_ZPUBLISHER_ENCODING` | `default-zpublisher-encoding` | `utf-8` |
48+
| `LISTEN_PORT` | (no equivalent) | `8080` |
4849

50+
#### Listen port
51+
52+
By default, the Zope process inside the container will listen on TCP port 8080.
53+
In certain circumstances — Kubernetes or Podman pods — there may be a need to run
54+
more than one Zope process within the network namespace, which would result in
55+
listen port clashes as two different processes within the same namespace attempt
56+
to listen to the same TCP port.
57+
58+
In these cases, the variable `LISTEN_PORT` can be set to any particular port above
59+
1024 to ensure that the container will listen on the desired port.
60+
61+
Plone 6 example:
62+
63+
```shell
64+
# Makes Zope listen to port 8081 instead of the default 8080.
65+
docker run -p 8081:8081 -e LISTEN_PORT=8081 plone/plone-backend:{PLONE_BACKEND_VERSION}
66+
```
4967

5068
### Site creation variables
5169

0 commit comments

Comments
 (0)