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
Because we use our own custom image for
php specifying a patch version is not currently supported. If you need to use a patch version you might be able to use our advanced service config.
# 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 # Install some extra server packages # run_as_root: # - "apt-get update -y" # - "apt-get install vim -y" # Print a message just to demonstrate this # run: # - "cd $LANDO_MOUNT & echo 'Holla!'" # Add some nice command routing # tooling:
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.