1

Using GeoServer Docker from https://github.com/geoserver/docker I am unable to change the port of the Tomcat container. As I did not find a server.xml, I tried to set this via the environment variable CATALINA_OPTS and the value -Dcatalina.http.port=8081 as suggested here, but Tomcat is still started on default port 8080. After solving this I would also provide a PR to add this to the docs.

Edit: To add context, I am building up a custom docker-compose.yml file that defines another service running on port 8080, so I need the port changed on container (and container network) level. The services are reverse-proxied on the host machine using Traefik running on host port 80.

2

1 Answer 1

1

I resorted to COPY a custom server.xml which looks at ${port.http} into the container. I got the idea from https://github.com/geoserver/docker/pull/39.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.