Question

How to deploy spring application on DO?

Hi,

I’m creating a spring web app and would like to deploy it on Digital Ocean. I can see it is quite simple to deploy React through github. Is it the same case with Spring?


Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
May 24, 2022

Hi there,

In addition to what has already been mentioned, in case that you are referring to the App Platform rather than a Droplet.

What you need to do is use a Dockerfile or a Docker image to deploy your Spring boot application to the App Platform:

https://docs.digitalocean.com/products/app-platform/languages-frameworks/docker/

Basically, the following is a list of the natively-supported languages and frameworks that App Platform

https://docs.digitalocean.com/products/app-platform/languages-frameworks/

As Java is not on the list, the way to go would be with a Docker file or a Docker image.

Best,

Bobby

Hi @SandyNavyMantaRay,

You can check out SpringBoot + DigitalOcean Droplets post for how to deploy simple App on a DigitalOcean droplets.

Hope it helps you, - Sergio Turpín

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.