Deploy Spring Boot

Deploy Spring Boot on any cloud.

Run Spring Boot with zero-downtime releases and Flyway migrations on startup. Beep builds the jar for you.

Spring Boot on Beep
Build
Railpack (auto)
Start
java -jar build/libs/app.jar
Port
$PORT, set by Beep
Health check
/actuator/health

Step by step.

  1. Connect a server

    Create a Hetzner server from the dashboard, or connect one from AWS, Google Cloud, Scaleway, any VPS or your own hardware. Beep sets it up and locks it down, so your apps are reachable only through Beep.

  2. Create a service from your repository

    Pick the GitHub or GitLab repository and the branch to track. In a monorepo, set the root directory for this service; watch paths limit rebuilds to changes that touch it.

  3. Let Beep build it

    Beep detects Java from build.gradle or pom.xml and builds your application. You can override the install, build or start command on the service.

    Start command
    java -jar build/libs/app.jar
  4. Listen on $PORT

    Beep sets PORT for every service unless you set it yourself, and routes traffic from its edge to that port. Bind to 0.0.0.0 so the edge can reach the container.

    application.properties
    server.port=${PORT:8080}
    server.address=0.0.0.0
  5. Add a database

    Add managed Postgres (16 to 18, with pgvector and PostGIS), Redis or Valkey to the project, then reference its connection string from your service. References resolve at deploy time.

    application.properties
    # PGHOST=${{ postgres.PGHOST }}, and PGPORT, PGDATABASE, PGUSER, PGPASSWORD the same way
    spring.datasource.url=jdbc:postgresql://${PGHOST}:${PGPORT}/${PGDATABASE}
    spring.datasource.username=${PGUSER}
    spring.datasource.password=${PGPASSWORD}
  6. Set a health check and deploy

    Set the health check path to /actuator/health, then deploy. On GitHub, every push to the tracked branch deploys too; GitLab repositories deploy in one click from the dashboard. Traffic moves to the new version only once it passes, and you can roll back instantly, with no rebuild.

  7. Add your domain

    Every service starts with a URL on beepx.app. When it works, point a CNAME for your domain at Beep; the certificate is issued and renewed for you. Each GitHub pull request also gets its own preview environment, removed when it closes.

Spring Boot tips.

JDBC needs a jdbc:postgresql:// URL, so build it from the PG variables instead of using DATABASE_URL.

With Flyway or Liquibase on the classpath, migrations run at startup; no pre-deploy command is needed.

Add spring-boot-starter-actuator and use /actuator/health as the health check path.

Spring Boot on Beep, answered.

Straight answers. Anything missing, ask us directly.

Do I need a Dockerfile to deploy Spring Boot?

No. Beep detects Java from build.gradle or pom.xml and builds your application. If your project already has a Dockerfile, you can build with that instead.

Where does the Spring Boot app run?

On servers you choose: AWS, Google Cloud, Hetzner, Scaleway, any VPS or your own hardware. Beep bills per server, so databases, workers and previews add nothing to the plan.

Can I SSH into the server?

No. Once Beep sets a server up, SSH is closed to the internet and only Beep’s encrypted private network can reach the server. To look inside a running service, open a shell in its container from the dashboard, next to its logs and metrics. Beep Cloud servers don’t run SSH at all.

Your cloud, run like a platform.

Plans from $3 a month. One flat price per server, never per app, seat or bandwidth.

Early access · We’ll set up your workspace

Or talk to us →