Chapter 13: Publishing Through Oracle Cloud Load Balancer
Now that your Ghost app (or any Docker service) is up and running, letβs publish it through Oracle Cloud's Load Balancer!
OCI Load Balancer gives you:
- HTTP/HTTPS traffic redirection
- SSL certificate support
- High availability
- Health checks and monitoring
π Step 1: Create the Load Balancer in OCI Console
- In the OCI Console, go to:
Networking > Load Balancers > Create Load Balancer - Enter a name (e.g.,
ghost-lb
) - Choose a shape: On the Add Details screen, enter a name for your Load Balancer. Select Public visibility and Ephemeral IP Address. Choose your desired Load Balancer shape.
- For Free Tier: select Flexible shape β
10 Mbps
(Always Free) β
- For Free Tier: select Flexible shape β
- Select the VCN (Virtual Cloud Network) where your instance is located
- Pick a public subnet for the load balancer
Step 2: Create a Backend Set
After the Load Balancer is created, configure the backend set βset, this defines the destination port and health checks.
- Go to Backend Sets > Create Backend Set
- Configure:
- Name:
ghost-backend
- Protocol:
HTTP
- Port:
2368
(Ghost's default port) - Policy:
Round Robin
- Name:
- Set up the Health Check:
- Protocol:
HTTP
- Port:
2368
- Path:
/
- Interval:
10s
/ Timeout:3s
/ Unhealthy threshold:3
- Protocol:
Step 3: Add Your Instance as a Backend
- Open your backend set
- Click Add Backend
- Choose your Ghost instance
- Set port to
2368
πΈ (Insert screenshot: adding instance to backend)
Step 4: Create the Listener
- Go to Listeners > Create Listener
- Set:
- Name:
ghost-listener
- Protocol:
HTTP
(orHTTPS
if using SSL) - Port:
80
(or443
for HTTPS) - Backend Set:
ghost-backend
- Name:
If using HTTPS, you can:
- Use an existing SSL certificate
- Or create a self-signed cert directly in OCI
πΈ (Insert screenshot: listener setup with optional SSL)