Tomcat The Apache Tomcat® software is an open source implementation of the Java Servlet, JavaServer Pages, Java Expression Language and Java WebSocket technologies. You can easily add it to your Lando app by adding an entry to the
services key in your app's
While Lando does not "officially" support specifying a patch version of this service you can try specifying one using overrides if you need to. This is not guaranteed to work so use at your own risk and take some care to make sure you are using a
debian flavored patch version that also matches up with the
minor versions of the service that we indicate above in "Supported versions".
Here are all the tags that are available for this service.
# Tomcat example server name: tomcat # Give me http://tomcat.lndo.site and https://tomcat.lndo.site proxy: appserver: - tomcat.lndo.site # Spin up services to run a basic tomcat server services: # Create a tomcat instance appserver: # tomcat version 8 type: tomcat:8 config: webroot: ./webapps serverxmlfile: ./config/server.xml tomcatusersfile: ./config/tomcat-users.xml contextfragmentspath: ./config/contextFragments # Optionally specify a command/script to run when you start your tomcat service up. # # This can be either a string or array. # # command: tomcat /app/server.rb
You will need to rebuild your app with
lando rebuild to apply the changes to this file. You can check out the full code for this example over here.