Docker image for tomcat with logback integration
10K+
Based on the official tomcat image, but with logs using logback.
Some environment variables are available to tune the logs:
classic (default): The logs are humane readable. Access logs are going to stdout and the other logs are going to stderr.json: The logs will be formatted in a JSON suitable for logstash. Access logs are going to stdout and the other logs are going to stderr.logstash: The logs will be formatted in a JSON suitable for logstash (@cee) and sent by syslog/UDP. The access logs are going to stdout in json format. More variables are available for this mode:
If you want to change the way things are logged, change the ${CATALINA_HOME}/conf/logback-custom.xml file.
If your application uses logback/log4j, it is recommended to not ship those libraries with your webapp. Just use the ones provided at tomcat level.
You can enable Sentry crash reports by adding a parameter to the CATALINA_OPTS environment variable with the DSN provided by sentry:
Other parameters are documented here: https://docs.sentry.io/clients/java/config/
Other changes compared the official tomcat image:
Content type
Image
Digest
sha256:302597ac5…
Size
240.2 MB
Last updated
over 3 years ago
docker pull camptocamp/tomcat-logback