Oracle Cloud Deployment
Deploy Forge on Oracle Cloud ARM64.
Oracle Cloud Deployment
The recommended production deployment uses Oracle Cloud A1 Flex ARM64 instances with PM2 process management and Cloudflare Tunnel for HTTPS. This is the golden path deployment that Optima Forge itself runs on.
Instance Configuration
- Shape: VM.Standard.A1.Flex (ARM64)
- CPU: 8 OCPUs (configurable 1-80)
- Memory: 48GB RAM (6GB per OCPU)
- Storage: 200GB boot volume
- OS: Oracle Linux 9 or Ubuntu 22.04
- Cost: Within Oracle Always Free tier for small instances
Setup Steps
# 1. Install Node.js 20+
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejs
# 2. Install PM2
npm install -g pm2
# 3. Install Docker
curl -fsSL https://get.docker.com | sh
sudo usermod -aG docker $USER
# 4. Clone and configure
git clone https://github.com/optima-forge/forge.git
cd forge
cp .env.example .env
# Edit .env with production values
# 5. Start sidecars
docker compose --profile all up -d
# 6. Install dependencies and start
npm install --production
pm2 start ecosystem.config.cjs
pm2 save
pm2 startup
Cloudflare Tunnel
# Install cloudflared
curl -L https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-arm64 -o cloudflared
chmod +x cloudflared
sudo mv cloudflared /usr/local/bin/
# Authenticate and create tunnel
cloudflared tunnel login
cloudflared tunnel create forge
cloudflared tunnel route dns forge optima-forge.com
# Configure tunnel (config.yml)
# tunnel: <your-tunnel-id>
# ingress:
# - hostname: optima-forge.com
# service: http://localhost:3402
# - service: http_status:404
# Run as service
sudo cloudflared service install
sudo systemctl start cloudflared
Monitoring
# Check PM2 status
pm2 status
# View logs
pm2 logs forge
# Monitor resources
pm2 monit