Adds ability to change HAPI FHIR JPA server's port with the environment variable server.port
This commit is contained in:
committed by
Jens Kristian Villadsen
parent
e9e9f5d89e
commit
9f65314537
@@ -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 catalina.properties /usr/local/tomcat/conf/catalina.properties
|
||||||
COPY server.xml /usr/local/tomcat/conf/server.xml
|
COPY server.xml /usr/local/tomcat/conf/server.xml
|
||||||
|
|
||||||
EXPOSE 8080
|
|
||||||
|
|
||||||
CMD ["catalina.sh", "run"]
|
CMD ["catalina.sh", "run"]
|
||||||
|
|||||||
@@ -206,3 +206,4 @@ tomcat.util.buf.StringCache.byte.enabled=true
|
|||||||
#tomcat.util.buf.StringCache.cacheSize=5000
|
#tomcat.util.buf.StringCache.cacheSize=5000
|
||||||
|
|
||||||
org.apache.tomcat.util.digester.PROPERTY_SOURCE=org.apache.tomcat.util.digester.Digester$EnvironmentPropertySource
|
org.apache.tomcat.util.digester.PROPERTY_SOURCE=org.apache.tomcat.util.digester.Digester$EnvironmentPropertySource
|
||||||
|
server.port=8080
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
APR (HTTP/AJP) Connector: /docs/apr.html
|
APR (HTTP/AJP) Connector: /docs/apr.html
|
||||||
Define a non-SSL/TLS HTTP/1.1 Connector on port 8080
|
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"
|
connectionTimeout="20000"
|
||||||
redirectPort="8443"
|
redirectPort="8443"
|
||||||
maxThreads="${server.tomcat.max-threads}"
|
maxThreads="${server.tomcat.max-threads}"
|
||||||
|
|||||||
Reference in New Issue
Block a user