This container image is really meant to be imported and inherited from so you can include your webapp.
Your main webapp should be placed either in
You can then use the SERVICE_NAME environment variable to change the app context path.
Aside from TOMCAT environment variables, the following environment variables are supported by our container:
-
TOMCAT_PASS - Sets the admin password for the tomcat manager. If not set, then a password will be randomly generated. The password will be shown in output when the container is launched.
-
SERVICE_NAME - Sets the context path for the app. When this is set and detected, ROOT/ or ROOT.war will be renamed to the value of this environment variable. When tomcat is launched, the app will be deployed under this context path. For example, if SERVICE_NAME is set to abc, then the app will be access via
http://host:8080/abc/
.