Skip to main content

Java / Tomcat startup configuration

  • This configuration is present in docker-compose.yml in section environment.

Direct properties for Java

  • Those properties are defined directly in environment section of docker-compose.yml.
PropertyTypeDescriptionExample value
DEBUG_ENABLEDbooleanEnables debug (default false). Java command is "-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n".true

Properties defined in Java opts

  • Any other property for java can be defined in JAVA_OPTS or STARTUP_OPTS property.
  • Example: JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=2043

Direct properties for Tomcat

  • Those properties are defined directly in environment section of docker-compose.yml.

Project properties

PropertyTypeDescriptionExample value
SAMO_ENV_CONFIGURATIONstringPath to samo environment configuration. Usually defined as variable.${env_configuration}
PROJECT_TYPEstringProject type. Allowed values are conventional and packaged. Default value is packaged.conventional

HTTPS Properties

PropertyTypeRequired for HTTPS configurationDescriptionExample value
HTTPS_ENABLEDbooleantrue (default false)If https is enabled.true
HTTPS_CERTIFICATE_PATHstringfalse (if not set and no default path is set for application, compose will fail)Path to https certificate.C:/Software/certificate.cer

Properties defined in startup args

  • Those properties are defined in environment section of docker-compose.yml under STARTUP_ARGS property. All of those are optional.
  • If type is empty, it means that property is used without value (see example below).
  • Example: STARTUP_ARGS="--server.datasource=property:customDataSource --server.oracle-clob-encoding-fix"
PropertyTypeDescriptionExample value
server.datasourcestringName of datasource property (default dataSource).customDataSource
server.oracle-clob-encoding-fixIf present, workaround for correct diacritics in CLOB when other than UTF8 charset is used.
server.allow-encoded-slashIf present, encoded slash in url (%2F) is allowed.
server.https.portintegerHttps port (default is 8443).8444
server.http.enabledbooleanEnables http (default true).false
server.http.portintegerHttp port (default is 8080).8081
server.maxHttpHeaderSizeintegerMax http header size (Tomcat default is 4096).16384