Created
September 21, 2016 08:04
-
-
Save mihaiparv/3078382efb5d79240c625da10ac837de to your computer and use it in GitHub Desktop.
JMX config for tomcat in docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "2" | |
| services: | |
| web: | |
| image: tomcat:8.5-alpine | |
| ports: | |
| - 8080:8080 | |
| - 9999:9999 | |
| environment: | |
| - CATALINA_OPTS=-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.rmi.port=9999 -Djava.rmi.server.hostname=0.0.0.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks.
Auth:
-Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.password.file=/usr/local/tomcat/conf/jmxremote.password -Dcom.sun.management.jmxremote.access.file=/usr/local/tomcat/conf/jmxremote.access