Oracle Cloud VPS Hosting with Docker, Nginx Proxy Manager and Cloudflare

This guide explains how I deployed and secured my cybersecurity website pnraolive.in using Oracle Cloud Free Tier, Docker, Nginx Proxy Manager, Cloudflare and Uptime Kuma.


Project Objectives

Architecture Overview

Internet
   |
Cloudflare
   |
Oracle Cloud VPS
   |
Docker
   |
Nginx Proxy Manager
   |
Website Container

Oracle Cloud VPS Specifications

Component Configuration
Provider Oracle Cloud
Operating System Ubuntu Server
vCPU 2
Memory 1 GB RAM
Storage 45 GB
Public IP Static Public IP

Installing Docker

sudo apt update
sudo apt install docker.io docker-compose -y

sudo systemctl enable docker
sudo systemctl start docker
Verify installation:
docker ps

Deploying Nginx Proxy Manager

Nginx Proxy Manager simplifies reverse proxy and SSL management.
docker run -d \
--name npm \
-p 80:80 \
-p 81:81 \
-p 443:443 \
jc21/nginx-proxy-manager:latest
Features:

Deploying Website Container

Create website directory:
mkdir -p ~/pnraolive-v2
Run Nginx:
docker run -d \
--name website \
-v ~/pnraolive-v2:/usr/share/nginx/html \
nginx:alpine

Cloudflare Integration

Cloudflare provides: DNS Record Example:
Type: A
Name: @
Content: Public_IP
Proxy Status: Proxied

SSL Configuration

SSL certificates are managed through Nginx Proxy Manager. Verification:
curl -I https://pnraolive.in
Example Response:
HTTP/1.1 200 OK
Strict-Transport-Security

Website Security Hardening

Implemented security controls:

Cloudflare Security

Security Headers

X-Frame-Options
X-Content-Type-Options
Referrer-Policy
Permissions-Policy
Content-Security-Policy

Browser Protection

These controls discourage casual copying but do not prevent determined users from accessing publicly served content.

Monitoring with Uptime Kuma

Container:
louislam/uptime-kuma
Capabilities:

Search Console Integration

Configured: Sitemap:
https://pnraolive.in/sitemap.xml
Robots:
https://pnraolive.in/robots.txt

Current Website Tools

Current Resource Utilization

Docker Containers

Container RAM Usage
Nginx Proxy Manager 25 MB
Website Container 1 MB
Uptime Kuma 68 MB

Server Performance

Load Average: 0.21
Disk Usage: 18%
Available RAM: 399 MB

Lessons Learned

Future Enhancements

Conclusion

Oracle Cloud Free Tier provides a reliable platform for hosting personal websites, technical blogs and lightweight cybersecurity tools. Combined with Docker, Nginx Proxy Manager and Cloudflare, it offers a secure, scalable and cost-effective hosting solution.


Author: Nageshwar Rao
Website: https://pnraolive.in