Adds ability to change HAPI FHIR JPA server's port with the environment variable server.port

This commit is contained in:
Ben Li-Sauerwine
2021-09-14 10:52:45 -04:00
committed by Jens Kristian Villadsen
parent e9e9f5d89e
commit 9f65314537
3 changed files with 2 additions and 3 deletions

View File

@@ -31,6 +31,4 @@ COPY --from=build-hapi /tmp/hapi-fhir-jpaserver-starter/target/*.war /usr/local/
COPY catalina.properties /usr/local/tomcat/conf/catalina.properties
COPY server.xml /usr/local/tomcat/conf/server.xml
EXPOSE 8080
CMD ["catalina.sh", "run"]

View File

@@ -206,3 +206,4 @@ tomcat.util.buf.StringCache.byte.enabled=true
#tomcat.util.buf.StringCache.cacheSize=5000
org.apache.tomcat.util.digester.PROPERTY_SOURCE=org.apache.tomcat.util.digester.Digester$EnvironmentPropertySource
server.port=8080

View File

@@ -39,7 +39,7 @@
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL/TLS HTTP/1.1 Connector on port 8080
-->
<Connector port="8080" protocol="HTTP/1.1"
<Connector port="${server.port}" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
maxThreads="${server.tomcat.max-threads}"