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


# 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

    # Install some extra server packages
    # extras:
    #  - "apt-get update -y"
    #  - "apt-get install vim -y"

    # Print a message just to demonstrate this
    # build:
    # - "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.

results matching ""

    No results matching ""