---
title: Deploy Kaeso on Oracle Cloud Infrastructure
description: "Run Kaeso 0.7.0 on an OCI Ampere A1 Arm VM within Oracle's Always Free allowance. Current 2 OCPU / 12 GB limits, security lists, iptables without UFW, DNS, backups and updates."
url: https://kaeso.app/articles/deploy-kaeso-on-oracle-cloud
markdown: https://kaeso.app/articles/deploy-kaeso-on-oracle-cloud.md
language: en
alternates:
  de: https://kaeso.app/de/articles/deploy-kaeso-on-oracle-cloud.md
  zh-CN: https://kaeso.app/zh-CN/articles/deploy-kaeso-on-oracle-cloud.md
published: 2026-11-22
authors:
  - Kaeso Team
tags:
  - self-hosting
  - oracle-cloud
  - deployment
  - guide
image: https://kaeso.app/articles/deploy-kaeso-on-oracle-cloud/cover.jpg
index: https://kaeso.app/llms.txt
---

# Deploy Kaeso on Oracle Cloud Infrastructure

Run Kaeso 0.7.0 on an OCI Ampere A1 Arm VM within Oracle's Always Free allowance. Current 2 OCPU / 12 GB limits, security lists, iptables without UFW, DNS, backups and updates.

> Every page, article and docs page of Kaeso is listed in https://kaeso.app/llms.txt.

- Published: 22 November 2026
- Reading time: 7 min
- Author: Kaeso Team

Oracle Cloud Infrastructure (OCI) includes an **Always Free** tier of Arm-based **OCI Ampere A1 Compute** instances (`VM.Standard.A1.Flex`). Because Kaeso publishes multi-architecture `linux/arm64` images, the full Docker Compose stack runs natively on a single A1 VM with 2 OCPUs and 12 GB of memory.

OCI has several quirks that trip up first-time deployments: your home region cannot be changed after sign-up, Always Free capacity is sometimes unavailable, Oracle lowered the Always Free A1 allowance in 2026, and Ubuntu images on OCI ship with host `iptables` rules where Oracle warns against using UFW. This guide walks through all of them for Kaeso 0.7.0; for shared Docker, backup and troubleshooting details, see the [Linux server guide](https://kaeso.app/articles/deploy-kaeso-on-a-linux-server).

## What you need

| | |
| --- | --- |
| Account | An [Oracle Cloud Free Tier](https://www.oracle.com/cloud/free/) or Pay As You Go account (sign-up requires a credit or debit card without PIN for verification; one Free Tier account per person) |
| Home region | Pick your home region carefully at sign-up: it [cannot be changed](https://docs.oracle.com/en-us/iaas/Content/Identity/regions/managingregions.htm) afterwards, and Always Free instances must be created there |
| SSH key | An SSH public key on your machine, such as `~/.ssh/id_ed25519.pub` |
| Domain | A domain or subdomain such as `kaeso.example.com` whose DNS you control |
| Email | An SMTP server on port 587 with STARTTLS (you can add it after the first login) |

## What it costs

Kaeso itself is open source under the MIT licence. Oracle's **Always Free** resources (as listed on Oracle's [Always Free Resources](https://docs.oracle.com/en-us/iaas/Content/FreeTier/freetier_topic-Always_Free_Resources.htm) page on 21 November 2026) include the following in your home region:

| Resource | Always Free allowance | Fit for Kaeso |
| --- | --- | --- |
| **OCI Ampere A1 Compute** (`VM.Standard.A1.Flex`) | First 1,500 OCPU hours and 9,000 GB hours per month — equal to **2 OCPUs and 12 GB RAM** for an Always Free tenancy | On A1, [1 OCPU equals 1 vCPU](https://docs.oracle.com/en-us/iaas/Content/Compute/References/computeshapes.htm). One 2-OCPU, 12-GB VM meets Kaeso's 2-vCPU minimum with room for ClickHouse |
| **Block Volume storage** | 200 GB total across boot and block volumes, plus 5 volume backups | Default boot volume is about 50 GB, above Kaeso's 20 GB minimum |
| **Outbound data** | 10 TB per month | Inbound data carries no charge |
| **Email Delivery** (optional) | 3,000 emails per month | Can be used as an SMTP relay |

Three conditions matter before you count on Always Free:

- **Limits change.** Oracle halved the Always Free A1 allowance in 2026 (older tutorials still cite 4 OCPUs and 24 GB). Size your instance at **2 OCPUs and 12 GB or less from day one**, even during the 30-day Free Trial: Oracle's [Free Tier FAQ](https://www.oracle.com/cloud/free/faq/) states that A1 instances exceeding Always Free limits are disabled when the trial ends and deleted after 30 days unless you upgrade. Paid (Pay As You Go) tenancies may differ; check the [Oracle Cloud Price List](https://www.oracle.com/cloud/price-list/).
- **Idle reclamation.** Oracle may reclaim idle Always Free compute instances if, over a 7-day period, 95th-percentile CPU utilization is below 20%, network utilization is below 20%, and (for A1 shapes) memory utilization is below 20% ([Always Free Resources](https://docs.oracle.com/en-us/iaas/Content/FreeTier/freetier_topic-Always_Free_Resources.htm)). A Kaeso install with regular traffic is usually active, while an unused test install may be reclaimed.
- **No support and capacity limits.** Always Free accounts are not eligible for Oracle Support, and A1 availability is subject to regional capacity. Check Oracle's pages before you start.

## 1. Create the Ampere A1 instance

In the OCI Console, open **Compute** › **Instances** › **Create instance** in your home region ([creating an instance](https://docs.oracle.com/en-us/iaas/Content/Compute/Tasks/launchinginstance.htm)):

1. **Placement:** pick an availability domain in your home region (Ampere A1 is available in every availability domain except South Korea North / Chuncheon).
2. **Image:** choose **Canonical Ubuntu 24.04** (`aarch64` build — use the standard Ubuntu image, not Minimal Ubuntu, as noted in [Platform Images](https://docs.oracle.com/en-us/iaas/Content/Compute/References/images.htm) and [Ubuntu 24.04 images](https://docs.oracle.com/en-us/iaas/images/ubuntu-2404/)).
3. **Shape:** select **Ampere** › **`VM.Standard.A1.Flex`**, set **2 OCPUs** and **12 GB** of memory. Check that the **Always Free-eligible** label appears.
4. **Networking:** create or pick a VCN with a public subnet and enable **Assign a public IPv4 address**.
5. **SSH keys:** paste or upload your public SSH key.
6. **Boot volume:** keep the default (about 50 GB) or increase within your 200 GB Always Free allowance.

If you see **"Out of host capacity"**, Oracle's docs recommend trying another availability domain in your home region, waiting and trying again later, or upgrading to Pay As You Go (Oracle states it does not charge for resources within Always Free limits after upgrading).

### Optional: install with cloud-init

Under **Show advanced options** › **Management**, OCI accepts a plain-text **Initialization script** up to 32,000 bytes (do not base64-encode it, and do not trigger a reboot inside it). If you use one, open the host firewall ports first (step 3 below) before running the Kaeso installer.

## 2. Open ports in the VCN security list

A VCN's [default security list](https://docs.oracle.com/en-us/iaas/Content/Network/Concepts/securitylists.htm) allows only inbound TCP port 22 (SSH) and ICMP. Add stateful ingress rules for HTTP, HTTPS and HTTP/3 ([updating a security list](https://docs.oracle.com/en-us/iaas/Content/Network/Concepts/update-securitylist.htm)):

1. Open your instance's subnet, click the **Security** tab, and open its security list (or attach a Network Security Group with the same rules).
2. Click **Add Ingress Rules** and add three stateful rules from source CIDR `0.0.0.0/0`:
   - IP Protocol **TCP**, Destination Port Range `80`
   - IP Protocol **TCP**, Destination Port Range `443`
   - IP Protocol **UDP**, Destination Port Range `443`
3. Optionally restrict the existing TCP `22` rule to your own IP range (`203.0.113.0/24`).

## 3. Open ports in the instance firewall (do not use UFW)

OCI's platform images also run a host firewall that allows only SSH ([Platform Images](https://docs.oracle.com/en-us/iaas/Content/Compute/References/images.htm)). **Do not use `ufw` on OCI Ubuntu images**: Oracle's [Known Issues for Compute](https://docs.oracle.com/en-us/iaas/Content/Compute/known-issues.htm) warns that editing rules with UFW can prevent the instance from booting, and must not block link-local traffic to `169.254.0.2`.

Sign in as `ubuntu` (root SSH login is disabled by default; on Oracle Linux the default user is `opc`):

```bash
ssh ubuntu@203.0.113.10
```

Before installing Docker, add ports 80/tcp, 443/tcp and 443/udp to `/etc/iptables/rules.v4` ahead of the final `REJECT` line in the `INPUT` chain and reload them:

```bash
sudo cp /etc/iptables/rules.v4 /etc/iptables/rules.v4.bak
sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 80 -j ACCEPT
sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 443 -j ACCEPT
sudo iptables -I INPUT 6 -m state --state NEW -p udp --dport 443 -j ACCEPT
sudo sh -c 'iptables-save > /etc/iptables/rules.v4'
```

Inspect `/etc/iptables/rules.v4` to confirm the three `ACCEPT` lines sit above the `REJECT` rule and that nothing blocks `169.254.0.2`. Doing this **before** installing Docker matters: running `iptables-restore < /etc/iptables/rules.v4` after Docker starts replaces Docker's own chains until you run `sudo systemctl restart docker`. (Docker's published ports are routed via `nat` and `FORWARD` ahead of `INPUT` once running — see [Docker and firewalls](https://docs.docker.com/engine/network/packet-filtering-firewalls/) — and opening `INPUT` keeps the host firewall consistent across reboots.)

If you chose Oracle Linux instead of Ubuntu, open the same ports with `firewall-cmd` instead ([ways to secure a network](https://docs.oracle.com/en-us/iaas/Content/Network/Concepts/waystosecure.htm)).

## 4. Point your domain at the instance

Create an A record for `kaeso.example.com` pointing at the instance's public IPv4 address, and check that it resolves before running the installer:

```bash
dig +short kaeso.example.com
```

## 5. Install Kaeso

Download and read the installer, then run it with `sudo`:

```bash
curl -fsSL https://kaeso.app/install.sh -o install.sh
less install.sh
sudo sh install.sh --domain kaeso.example.com --dir /opt/kaeso --install-docker
```

Docker Engine supports Ubuntu 24.04 on `arm64` ([Docker on Ubuntu](https://docs.docker.com/engine/install/ubuntu/)), and Kaeso's 0.7.0 images ship multi-arch builds for `linux/arm64`. The installer sets up Docker, writes `/opt/kaeso/compose.yaml`, `.env` and `master-keys`, starts every service with the updater enabled, waits for Caddy's certificate, and prints a one-time setup link. Add `--version 0.7.0` to pin this release.

## 6. Create the first user, save the master key and add SMTP

Open the setup link within 24 hours to create the first instance admin. To print a new link while no user exists:

```bash
cd /opt/kaeso
sudo docker compose exec gateway kaeso setup-link
```

Save `/opt/kaeso/master-keys` into your password manager, separate from your server backups:

```bash
sudo cat /opt/kaeso/master-keys
```

For outgoing email, OCI blocks **port 25** by default unless you open a service limits request ([Always Free Resources](https://docs.oracle.com/en-us/iaas/Content/FreeTier/freetier_topic-Always_Free_Resources.htm)). Oracle documents no block on port 587, which is Kaeso's default. Edit `/opt/kaeso/.env` as shown in the [Linux server guide](https://kaeso.app/articles/deploy-kaeso-on-a-linux-server#5-add-your-smtp-server), apply with `sudo docker compose up -d --wait`, and verify:

```bash
cd /opt/kaeso
sudo docker compose exec gateway kaeso mail test owner@example.com
```

## Back up

Always Free includes five **Block Volume backups** across your tenancy. Volume backups are useful for restoring the whole instance, but not a replacement for `pg_dump`: a snapshot taken while PostgreSQL writes may not restore cleanly. Schedule logical PostgreSQL dumps off the instance as shown in the [Linux server guide](https://kaeso.app/articles/deploy-kaeso-on-a-linux-server#back-up-the-volumes), and keep `/opt/kaeso/master-keys` somewhere else.

## Update to the next release

Instance admins can update from **Instance** › **Updates** in the console, turn on automatic updates in a maintenance window, or run `sudo sh install.sh --update` in `/opt/kaeso`. See [Update to the next release](https://kaeso.app/articles/deploy-kaeso-on-a-linux-server#update-to-the-next-release).

Before updating from 0.6 to 0.7, check `.env` and `compose.override.yaml` for the three settings 0.7.0 now refuses (`KAESO_KPMR_INTERVAL` below `5m`, `KAESO_MCP_SERVERS_SYNC_INTERVAL` below `1m`, and `KAESO_SMTP_USER` without `KAESO_SMTP_PASSWORD`); see the [Kaeso 0.7 article](https://kaeso.app/articles/kaeso-0-7).

## Troubleshooting

| What you see | What to do |
| --- | --- |
| "Out of host capacity" when creating the VM | Try another availability domain in your home region, wait and retry later, or upgrade to Pay As You Go (usage within Always Free limits is not billed) |
| Ports 80/443 time out despite VCN rules | Check both the subnet's VCN security list and `/etc/iptables/rules.v4` on the instance; never use `ufw` on OCI Ubuntu images |
| Containers lose network access after `iptables-restore` | `iptables-restore` overwrites Docker's chains; run `sudo systemctl restart docker` afterwards |
| Instance stopped after a quiet week | Check OCI's 7-day idle reclamation thresholds (CPU, network and memory each under 20%) |
| `ssh root@…` is rejected | OCI disables root SSH login by default; sign in as `ubuntu` (or `opc` on Oracle Linux) and use `sudo` |

See [Troubleshooting](https://kaeso.app/articles/deploy-kaeso-on-a-linux-server#troubleshooting) in the Linux server guide for shared Docker and gateway issues.

## What was tested

The OCI steps were checked against Oracle Cloud Infrastructure's documentation and Docker's Ubuntu arm64 docs on 22 November 2026; Kaeso hasn't been installed on OCI for this guide. For the shared Compose package, the 0.7.0 `compose.yaml`, `.env`, `kaeso config check` and first start against PostgreSQL, ClickHouse and Valkey were tested locally, and the 0.6-to-0.7 update path was tested on a Debian server during the 0.7.0 release. If you deploy it there, [tell us](https://kaeso.app/contact) how it went.

## Next steps

- [Deploy Kaeso on a Linux server](https://kaeso.app/articles/deploy-kaeso-on-a-linux-server): backups, `config check`, scaling and troubleshooting for Docker Compose installs.
- [Where to run Kaeso](https://kaeso.app/articles/where-to-run-kaeso): compare cloud servers, managed platforms and Kubernetes.
- [Configuration](https://docs.kaeso.app/self-hosting/configuration): every environment variable and config-file setting.

Product names in this guide belong to their owners and are used only to name the software and services involved. Kaeso is not affiliated with or endorsed by them.

By Kaeso Team

## More articles

- [Deploy Kaeso on Scaleway](https://kaeso.app/articles/deploy-kaeso-on-scaleway.md): Run Kaeso 0.7.0 on a Scaleway Instance using the scw CLI or the Console. Plans, Flexible IPv4, stateful security groups, cloud-init, enabling SMTP, backups and updates.
- [Deploy Kaeso on Proxmox VE](https://kaeso.app/articles/deploy-kaeso-on-proxmox.md): Run Kaeso 0.7.0 on Proxmox VE 9.2 in a Debian or Ubuntu cloud-init VM. Why a VM fits Docker Compose better than an LXC container, guest agent, vzdump backups and updates.

[See all articles](https://kaeso.app/articles.md)

## Own the gateway. Own the record

```bash
curl -fsSL https://kaeso.app/install.sh | sh
```

[Install Kaeso](https://docs.kaeso.app/self-hosting/installation) · [Open the live demo](https://demo.kaeso.app)
