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.
| Property | Type | Description | Example value |
|---|---|---|---|
| DEBUG_ENABLED | boolean | Enables 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
| Property | Type | Description | Example value |
|---|---|---|---|
| SAMO_ENV_CONFIGURATION | string | Path to samo environment configuration. Usually defined as variable. | ${env_configuration} |
| PROJECT_TYPE | string | Project type. Allowed values are conventional and packaged. Default value is packaged. | conventional |
HTTPS Properties
| Property | Type | Required for HTTPS configuration | Description | Example value |
|---|---|---|---|---|
| HTTPS_ENABLED | boolean | true (default false) | If https is enabled. | true |
| HTTPS_CERTIFICATE_PATH | string | false (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"
| Property | Type | Description | Example value |
|---|---|---|---|
| server.datasource | string | Name of datasource property (default dataSource). | customDataSource |
| server.oracle-clob-encoding-fix | If present, workaround for correct diacritics in CLOB when other than UTF8 charset is used. | ||
| server.allow-encoded-slash | If present, encoded slash in url (%2F) is allowed. | ||
| server.https.port | integer | Https port (default is 8443). | 8444 |
| server.http.enabled | boolean | Enables http (default true). | false |
| server.http.port | integer | Http port (default is 8080). | 8081 |
| server.maxHttpHeaderSize | integer | Max http header size (Tomcat default is 4096). | 16384 |