@@ -104,8 +104,8 @@ of sudo to start Postfix, or if you wish to use an external mail server.
104104
105105*Default: <null> *
106106
107- If left un-set, the container will listen on port 5050 for connections in plain
108- text. If set to any value, the container will listen on port 443 for TLS
107+ If left un-set, the container will listen on port 8080 for connections in plain
108+ text. If set to any value, the container will listen on port 8443 for TLS
109109connections.
110110
111111When TLS is enabled, a certificate and key must be provided. Typically these
@@ -122,7 +122,7 @@ for most users - in IPv4-only environments, this may need to be set to
122122
123123**PGADMIN_LISTEN_PORT **
124124
125- *Default: 5050 or 443 (if TLS is enabled) *
125+ *Default: 8080 or 8443 (if TLS is enabled) *
126126
127127Allows the port that the server listens on to be set to a specific value rather
128128than using the default.
@@ -227,13 +227,13 @@ instances.
227227
228228 sudo chown -R 5050:5050 < host_directory>
229229
230- The default listen port is 5050 , which does not require any special
231- privileges. If you need to use a different port, specify it when launching
232- the container by adding the environment variable, for example:
230+ The default listen port is 8080 (or 8443 with TLS) , which does not require
231+ any special privileges. If you need to use a different port, specify it when
232+ launching the container by adding the environment variable, for example:
233233
234234 .. code-block :: bash
235235
236- -e ' PGADMIN_LISTEN_PORT=8080 '
236+ -e ' PGADMIN_LISTEN_PORT=5050 '
237237
238238 Don't forget to adjust any host-container port mapping accordingly.
239239
@@ -279,22 +279,22 @@ certificate.
279279Examples
280280********
281281
282- Run a simple container over port 5050 :
282+ Run a simple container over port 8080 :
283283
284284.. code-block :: bash
285285
286286 docker pull dpage/pgadmin4
287- docker run -p 5050:5050 \
287+ docker run -p 8080:8080 \
288288 -e ' PGADMIN_DEFAULT_EMAIL=user@domain.com' \
289289 -e ' PGADMIN_DEFAULT_PASSWORD=SuperSecret' \
290290 -d dpage/pgadmin4
291291
292- Run a simple container over port 5050 , setting some configuration options:
292+ Run a simple container over port 8080 , setting some configuration options:
293293
294294.. code-block :: bash
295295
296296 docker pull dpage/pgadmin4
297- docker run -p 5050:5050 \
297+ docker run -p 8080:8080 \
298298 -e ' PGADMIN_DEFAULT_EMAIL=user@domain.com' \
299299 -e ' PGADMIN_DEFAULT_PASSWORD=SuperSecret' \
300300 -e ' PGADMIN_CONFIG_ENHANCED_COOKIE_PROTECTION=True' \
@@ -309,7 +309,7 @@ Run a TLS secured container using a shared config/storage directory in
309309.. code-block :: bash
310310
311311 docker pull dpage/pgadmin4
312- docker run -p 443:443 \
312+ docker run -p 443:8443 \
313313 -v /private/var/lib/pgadmin:/var/lib/pgadmin \
314314 -v /path/to/certificate.cert:/certs/server.cert \
315315 -v /path/to/certificate.key:/certs/server.key \
@@ -326,13 +326,13 @@ Sometimes it's desirable to have users connect to pgAdmin through a reverse
326326proxy rather than directly to the container it's running in. The following
327327examples show how this can be achieved. With traditional reverse proxy servers
328328such as `Nginx <https://www.nginx.com/ >`_, pgAdmin is running in a container on
329- the same host, with port 5050 on the host mapped to port 5050 on the container,
329+ the same host, with port 8080 on the host mapped to port 8080 on the container,
330330for example:
331331
332332.. code-block :: bash
333333
334334 docker pull dpage/pgadmin4
335- docker run -p 5050:5050 \
335+ docker run -p 8080:8080 \
336336 -e " PGADMIN_DEFAULT_EMAIL=user@domain.com" \
337337 -e " PGADMIN_DEFAULT_PASSWORD=SuperSecret" \
338338 -d dpage/pgadmin4
@@ -382,7 +382,7 @@ reverse proxy listening for all hostnames with `Nginx
382382
383383 location / {
384384 proxy_set_header Host $host;
385- proxy_pass http://localhost:5050 /;
385+ proxy_pass http://localhost:8080 /;
386386 proxy_redirect off;
387387 }
388388 }
@@ -400,7 +400,7 @@ tells the pgAdmin container how to rewrite paths:
400400 location /pgadmin4/ {
401401 proxy_set_header X-Script-Name /pgadmin4;
402402 proxy_set_header Host $host;
403- proxy_pass http://localhost:5050 /;
403+ proxy_pass http://localhost:8080 /;
404404 proxy_redirect off;
405405 }
406406 }
@@ -444,7 +444,7 @@ adjusted as appropriate to the specific deployment:
444444 proxy_set_header X-Script-Name /pgadmin4;
445445 proxy_set_header X-Scheme $scheme;
446446 proxy_set_header Host $host;
447- proxy_pass http://localhost:5050 /;
447+ proxy_pass http://localhost:8080 /;
448448 proxy_redirect off;
449449 }
450450 }
0 commit comments