Documentation menu

Deploy any Java app on Light Cloud - the JVM runtime behind Spring Boot and Quarkus, run as a container on port 8080.

Deploy Java

Any JVM web app runs as a container on the Java runtime - the machinery behind the Spring Boot and Quarkus guides, available to Micronaut, Javalin, Vert.x, Ktor, and plain servlet apps too. Detection reads your Maven or Gradle build; the default port is 8080.

The contract#

  • Listen on the routed port, or read the PORT variable, which is set to it.
  • Bind 0.0.0.0 - a loopback bind is unreachable from outside the container.
  • Log to stdout/stderr for runtime logs.

Configuration and database#

Containers receive environment variables at runtime - read them with System.getenv or your framework's config layer. JDBC details come from the database's Credentials tab:

jdbc:postgresql://203.0.113.10:5432/mydb?sslmode=require

Scaling#

JVM cold starts run seconds - keep production at min instances 1 and give the heap room with at least the Small size. Previews stay happily at zero.