1, 2, 3: SpringBoot, Docker, Nginx, DigitalOcean
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.
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: