In this article we’ll build a simple and inexpensive load-balanced web setup on DigitalOcean.
The architecture is intentionally minimal:
- 1 DigitalOcean Load Balancer
- 2 small droplets
- A lightweight web app running with Docker + PHP + Nginx
The goal is to show how quickly you can build a basic scalable web entry point without complex infrastructure.
Architecture diagram created with
Creating the first server
Go to your DigitalOcean account and create a small droplet.
Configuration used in this guide:
- Image: Docker latest on Ubuntu 22.04
- Region: choose the closest to your users
- Authentication: SSH recommended (Password also works)
- Hostname:
WebServer-1
Open the server IP in your browser.
You should see something like:
Hi. From ip 10.x.x.x
Configure:
- HTTP forwarding
- Attach WebServer-1
Once created, open the load balancer IP.
You’ll see something similar to this:
Then create a new droplet from that snapshot in the same region.
Adding the new node to the Load Balancer
Go back to the Load Balancer configuration and attach the second server.
– architecture diagrams used in this article
SOCIAL SHARE CARD GENERATOR