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 .lando.yml.

Supported versions

  • 8 (default)
  • 7
  • custom

Using patch versions

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 major and 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 and

# Spin up services to run a basic tomcat server

  # Create a tomcat instance

    # tomcat version 8
    type: tomcat:8
      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.

results matching ""

    No results matching ""