1, 2, 3: SpringBoot, Docker, Nginx, DigitalOcean

Beppe Catanese
6 min readJan 14, 2021

This is another step-by-step walkthrough which explains how to dockerize and deploy a SpringBoot microservice behind Nginx.

This article aims at helping Java developers who want to start using popular tools (Docker, Nginx, DockerHub, Certbot) to create a production-ready application. It will also show how to obtain a (free!) domain, setup a (free!) SSL certificate and deploy on DigitalOcean. Some Devops for developers.

Why 1–2–3? Focus on simple essential aspects, clear code samples and relevant references.

Image by author

DigitalOcean

DigitalOcean is one of the most popular cloud platforms for deploying and managing applications and web sites.

The cheapest plan starts from 5$ per month (there is a Free Trial to start with) which is absolutely worth paying: it gives you access to a Droplet (1GB memory, 25GB SSD) with several flavors available and plenty of documentation to read.

Architecture

Our architecture will be something like this:

Image by author

--

--

Beppe Catanese

Developer Relations @ Adyen. Here sharing new trends, dev tools and best practises about APIs.