Nelkit Chavez
All writing

Moving my portfolio to a single Oracle Cloud server

Why I moved six portfolio apps from Render, Railway and Streamlit Cloud to one free Oracle Cloud VM, and the decisions that made it work.

Moving my portfolio to a single Oracle Cloud server

The problem

My portfolio runs six apps: four FastAPI services (an LSTM crypto forecaster, a weather prediction model and two RAG backends) and two Streamlit dashboards. They lived on the free tiers of Render, Railway and Streamlit Community Cloud.

Free tiers sleep. Streamlit apps go to sleep after 12 hours without traffic, and Render services spin down after 15 minutes idle. A recruiter opening a demo would get a cold start or a "wake this app up" screen. Not the first impression I want my work to make.

Why Oracle Cloud

OCI's Always Free tier includes an Ampere A1 Arm VM. Since mid 2026 the allowance is 2 OCPUs and 12 GB of RAM, half of what it used to be, but still plenty: all six apps fit comfortably, with room to spare. One always-on server, no cold starts, no monthly bill.

The setup

  • Ubuntu 24.04 on arm64
  • Docker Compose, one service per app, with images built directly on the server (native arm64, no registry, no emulation)
  • Caddy as reverse proxy, with automatic HTTPS for every subdomain (crypto-api.nelkit.dev, liveability-api.nelkit.dev and so on)
  • Cloudflare DNS in "DNS only" mode, so Caddy can obtain Let's Encrypt certificates directly
  • GitHub Actions: every push to main connects to the server over SSH and runs a deploy script that pulls, rebuilds and restarts only that service

Decisions worth explaining

Pay As You Go, still paying nothing. Oracle can reclaim Always Free instances it considers idle, and a portfolio is idle most of the time. Upgrading the account keeps Always Free resources free and removes that risk. A 1 USD budget alert catches any mistake. Heads up: the upgrade places a temporary 100 USD hold on your card, which is reversed a few days later.

Keep the databases managed. Supabase and Qdrant Cloud stayed where they were. Migrating data adds risk for little gain. The trade-off is that both free tiers pause after about a week of inactivity, so a cron job on the server calls real endpoints every three days: a database-backed API route and an authenticated search that queries Qdrant.

Build on the server, not in CI. Building arm64 images in GitHub Actions means emulation or Arm runners, plus a registry to push to. Building on the VM itself is simpler, and thanks to Docker layer caching, rebuilds take seconds unless dependencies change.

What I learned

  • Check the real limits, not the docs you find online. Most guides still say the Always Free tier gives you 4 OCPUs and 24 GB. It was halved in 2026, and even the warning in Oracle's own console showed the old numbers. The Service Limits page in your tenancy is the source of truth.
  • There are two firewalls, not one. Opening ports 80 and 443 in the VCN security list isn't enough: Oracle's Ubuntu images also ship with iptables rules that reject incoming traffic. Both need to be opened.
  • Let the wizard build the network. The instance creation form kept refusing to assign a public IP to its "new public subnet". Creating the VCN first with the "VCN with Internet Connectivity" wizard, then selecting it, solved it in two minutes.
  • Reserve the IP before touching DNS. The default public IP is ephemeral. Reserving it first means DNS records never have to change if the instance is recreated.
  • DNS before HTTPS. With Cloudflare's proxy on, Let's Encrypt can't reach the server to validate the domain. Switching the records to "DNS only" and waiting for them to resolve before starting Caddy avoids failed validations and rate limits.
  • Check Arm compatibility up front. Before migrating, I confirmed every dependency (TensorFlow, PyTorch, ChromaDB, PyAV) had arm64 wheels. They all did, so the move required no code changes.
  • Location still matters. The server is in Sydney, but one of the databases stayed in Mumbai, and every query now pays that distance. Consolidating compute doesn't help if the data lives on another continent.
  • Free hosting platforms were doing work I didn't see. TLS certificates, OS updates, firewall rules and restarts are now my job. Docker Compose, Caddy and unattended-upgrades cover most of it, but it's worth knowing before you migrate.

Result

Six apps, one server, HTTPS everywhere, push to deploy, and no more sleeping demos. Infrastructure cost: zero.