FAQ & Examples¶
KeyStore / TrustStore¶
- Either extend the image or bring the files via volumes into your running container
- Use the CATALINA_OPTS environment variable to configure TomEE to use your store
Example:
environment:
- CATALINA_OPTS=-Djavax.net.ssl.trustStore=conf/truststore.jks -Djavax.net.ssl.trustStorePassword=insight
volumes:
- ./tomee/conf/truststore.jks:/usr/local/tomee/conf/truststore.jks
insight.properties for middleware configuration¶
To (pre-)configure your container you can bring in your own configuration file.
1) Extract existing file: /usr/local/tomee/conf/insight.properties
2) Add or change properties as described in the "Insight Configuration" section of this document
3) Extend the image with the new file or use a volume definition
Example:
volumes:
- ./tomee/conf/insight.properties:/usr/local/tomee/conf/insight.properties
Beware to not simply override existing files and their default settings!
config.js/config.json for client configuration¶
To (pre-)configure your container you can bring in your client configuration files.
4) Extract existing files:
- /usr/local/tomee/www/web/config.js
- /usr/local/tomee/www/mobile/config.js
- /usr/local/tomee/www/mobile/config.json
5) Add or change properties as described in the "Insight Configuration" section of this document
6) Extend the image with the new file or use a volume definition
Example:
volumes:
- ./tomee/conf/insight.properties:/usr/local/tomee/conf/insight.properties
Beware to not simply override existing files and their default settings!