Hosting a .NET web app as an App or Droplet?

Hello! What would be the best choice for hosting a .NET 6 Web API project on digitalocean:

  • Hosting as a Droplet (using a template or manually installing Docker, nginx and managing the server)?
  • Using the App platform to deploy a docker image?

The project only requires a way to host it as a web app (uses AzureSQL as a database). I would like to have the easiest way to manage the app (meaning fastest way to push updates and maybe not having to deal with server management stuff). I can create a docker image from the source files and let docker build the app or load the binaries as well. The app only required port 80 and 443. I need to setup HTTPS.

Can I do this with the App platform? Host the app with my own docker image and with an ssl certificate (let’s encrypt is enough)?

Submit an answer

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.

Jon Friesen
DigitalOcean Employee
DigitalOcean Employee badge
October 10, 2022

👋 Szabolcs,

Great question! App Platform will probably be the easiest form of hosting for your .net app. As you mentioned you will need to provide a dockerfile which App Platform can build and deploy for you.

Some additional notes:

  • App Platform will provide a SSL certificate for you, so no need for lets encrypt or starting your own https server)
  • Depending on your preference you could let App Platform build your dockerfile for you OR if you already have a CICD system setup, you can build and push your docker image to DigitalOcean Container Registry and have your app auto-deploy the new image.

Hope this helps!

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.

This promotional offer applies to new account only.

© 2023 DigitalOcean, LLC.