[PATCH 3 of 3] Drop explicit host ports

Wald Commits scm-commit at wald.intevation.org
Thu Jul 20 10:36:39 CEST 2023


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1689842110 -7200
#      Thu Jul 20 10:35:10 2023 +0200
# Branch 3.2.x
# Node ID a00bb9d39c162ff1fc05b5f2c7e6fa1d204fe8e0
# Parent  75dc4ea60938afc462657c0c63f4046c36ef4758
Drop explicit host ports

Compose will automatically allocate unassigned ports. These can be looked
up e.g. using `docker compose port'. Enables using several "instances"
of the application with different project names
(`docker compose -p <project name>').

diff -r 75dc4ea60938 -r a00bb9d39c16 docker/README
--- a/docker/README	Thu Jul 20 10:25:59 2023 +0200
+++ b/docker/README	Thu Jul 20 10:35:10 2023 +0200
@@ -2,7 +2,7 @@
 _ Add to gwt-client/config/mapfish/config.yaml to enable map printing:
   - !dnsMatch
     host: <your-host>
-    port: 8080
+    port: <your-host-port>
 
 
 Build and run:
@@ -10,8 +10,12 @@
 $ cd docker
 $ docker-compose up
 
-The application should now be accessible on your docker host under
-port 8080 (e.g. http://your-host:8080).
+Lookup the allocated host port:
+
+$ docker compose port wiki 80
+
+The application should now be accessible on your docker host
+(e.g. http://your-host:your-host-port).
 See docker/flys_user_file for credentials.
 
 In case an Oracle database should be used, the server service has to be
diff -r 75dc4ea60938 -r a00bb9d39c16 docker/docker-compose.yml
--- a/docker/docker-compose.yml	Thu Jul 20 10:25:59 2023 +0200
+++ b/docker/docker-compose.yml	Thu Jul 20 10:35:10 2023 +0200
@@ -54,7 +54,7 @@
       - wiki-data:/opt/wiki/moin-1.9.9/wiki/data
       - ./wikiconfig_local.py:/opt/wiki/moin-1.9.9/wikiconfig_local.py
     ports:
-      - 8080:80
+      - 80
 volumes:
   artifacts-data:
   dgm-data:


More information about the Dive4Elements-commits mailing list