DEV Community

Cover image for How to find java app hosting(ISP) or How to deploy Spring Boot website to Koyeb
özkan pakdil
özkan pakdil

Posted on • Originally published at ozkanpakdil.github.io on

How to find java app hosting(ISP) or How to deploy Spring Boot website to Koyeb

Spring boot is the most famous java framework, and I have been looking for a simple way to serve a java app on a hosting service(not dedicated which is very expensive not AWS/Azure which are too complicated), Most shared hosting does not support java apps, they support php or asp or perl here is the table for godaddy webhosting supported tech.

I will explain how to deploy from dockerhub to Koyeb, or we can deploy from github repository too.

  1. Develop a SB app make sure everything works in the local.
  2. Run mvn spring-boot:build-image -Dspring-boot.build-image.imageName=target-docker-namespace/app-name this will generate the image of the app in the local docker.
  3. Push the image to docker hub, docker push <DOCKER_USERNAME>/getting-started-todo-app or use docker desktop

howto-push-docker-image-from-docker-desktop

  1. Go to koyeb dashboard and click Create webservice then choose docker and configure accordingly, system will generate us a subdomain where we can test, then do the dns connection and our site is online.

I spend around 2 hours until make the app work in docker image, needed to update pom xml versions and plugins, better to follow the https://start.spring.io/ which has the best pom.

At Koyeb side, while configuring the instance I changed the port to 8080, if we do not choose the port used by SB it may not work.

For now this looks like will take 5.36$ monthly. I use 1 eSmall instance I took a screen shot just for future reference, and see how inflation affect them koyeb instance prices 01-01-2025

References:

ACI image

ACI.dev: Best Open-Source Composio Alternative (AI Agent Tooling)

100% open-source tool-use platform (backend, dev portal, integration library, SDK/MCP) that connects your AI agents to 600+ tools with multi-tenant auth, granular permissions, and access through direct function calling or a unified MCP server.

Star our GitHub!

Top comments (0)

Dappier Deep Dive: Build, Monetize, Repeat

Join us live with the team at Dappier to explore how to transform your content into AI-powered agents and unlock new revenue streams. We’ll dive into deploying branded AI assistants using Dappier’s AskAI, monetizing through conversational Agentic Ads, and syndicating your data via the Dappier Marketplace. Whether you’re a publisher, developer, or content creator, discover how to future-proof your work and thrive in the AI-driven web.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️