Log inSign up

ownCloud Infinite Scale behind Caddy on your own server

Run the official owncloud/ocis container with Docker Compose, let it generate its config with ocis init on the first start, bind it to 127.0.0.1:9200 and put Caddy in front for automatic HTTPS. Set OCIS_URL to your public address and PROXY_TLS=false because Caddy handles TLS. Infinite Scale is a Go rewrite with no PHP and no separate database, so it runs on modest plans.

Topic: Self-hosted apps · Tested on: Ubuntu 24.04 and 22.04, Debian 12 and 13 · Updated 2026-12-03

What is ownCloud Infinite Scale and what does it need?

Infinite Scale, usually shortened to oCIS, is the newer ownCloud server written in Go. It stores files and metadata on disk directly, bundles its own identity provider and web interface, and ships as a single binary or a container image. That makes the stack short: one container plus a reverse proxy.

Before starting, prepare:

  • Ubuntu 24.04 or Debian 12/13 with a sudo user. The Docker app image saves the engine install; otherwise follow Docker Engine install.
  • A host name such as files.example.net with A and AAAA records pointing at the server.
  • At least 2 GB of memory for a few users; search indexing and thumbnails like more.

Check the tools are ready:

docker --version
docker compose version

How do you lay out the Compose project?

Keep everything under one folder with separate directories for config and data, owned by UID 1000 because the container runs as that user.

sudo mkdir -p /opt/ocis/config /opt/ocis/data
sudo chown -R 1000:1000 /opt/ocis/config /opt/ocis/data
cd /opt/ocis
printf 'ADMIN_PASSWORD=%s\n' "$(openssl rand -base64 24)" | sudo tee .env
sudo chmod 600 .env

The .env file holds the first admin password. Read it once with sudo cat /opt/ocis/.env, store it in your password manager and change it after the first login.

What goes into the docker-compose.yml file?

One service is enough: the entrypoint runs ocis init (which does nothing on later starts because the config already exists) and then the server.

services:
  ocis:
    image: owncloud/ocis:latest
    container_name: ocis
    restart: unless-stopped
    entrypoint: ["/bin/sh", "-c", "ocis init || true; exec ocis server"]
    environment:
      OCIS_URL: https://files.example.net
      OCIS_LOG_LEVEL: warn
      OCIS_INSECURE: "false"
      PROXY_TLS: "false"
      PROXY_HTTP_ADDR: 0.0.0.0:9200
      IDM_ADMIN_PASSWORD: ${ADMIN_PASSWORD}
    volumes:
      - /opt/ocis/config:/etc/ocis
      - /opt/ocis/data:/var/lib/ocis
    ports:
      - "127.0.0.1:9200:9200"

Replace latest with the current major tag listed in the ownCloud release notes so that an image pull never jumps a major version by surprise. The port mapping binds to loopback on purpose: Docker writes its own packet filter rules and can bypass ufw, so a loopback binding is the simplest way to keep 9200 private.

sudo docker compose up -d
sudo docker compose logs -f ocis

Wait until the log settles, then press Ctrl+C. A quick local probe should return a status reply: curl -s http://127.0.0.1:9200/status.php.

How do you put Caddy in front with HTTPS?

Install Caddy from its official package repository and give it a two-line site block; it obtains and renews the certificate on its own.

sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update && sudo apt install -y caddy

Replace the default /etc/caddy/Caddyfile with:

files.example.net {
    reverse_proxy 127.0.0.1:9200
}
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable
sudo systemctl reload caddy
curl -I https://files.example.net

The Caddy HTTPS tutorial covers logs, headers and several sites on one server. Nginx works too if you already run it; keep WebSocket upgrade headers and raise client_max_body_size, or large uploads will stop.

How do you log in and create users?

Open https://files.example.net, sign in as admin with the password from .env, and change it under your profile right away.

Then open the user management app from the app switcher and add one account per person. Spaces are the oCIS way to share a project folder among a group with its own quota; create them under the Spaces view and assign managers. Desktop and mobile ownCloud clients connect with the same address, and the login runs through the built-in identity provider, so the clients open a browser window for the sign-in.

If you see a redirect loop or an "invalid redirect URI" message, the value of OCIS_URL does not match the address in the browser exactly, including the scheme.

How do you send notification mail?

Set the notification service SMTP variables in the Compose file and restart; oCIS then mails share and space notices.

      NOTIFICATIONS_SMTP_HOST: smtp.example.net
      NOTIFICATIONS_SMTP_PORT: "587"
      NOTIFICATIONS_SMTP_SENDER: "Files <files@example.net>"
      NOTIFICATIONS_SMTP_USERNAME: files@example.net
      NOTIFICATIONS_SMTP_PASSWORD: change-me
      NOTIFICATIONS_SMTP_AUTHENTICATION: login
      NOTIFICATIONS_SMTP_ENCRYPTION: starttls

Use an authenticated relay on port 587 like this rather than talking to recipient servers directly. Port 25 delivery from a VPS is not something to count on, so ask support by ticket first if you ever plan it. The SMTP relay guide shows how to set up the sending account and DNS records.

How do you back up and upgrade oCIS?

Stop the container, copy the config and data folders together, and start it again; the two folders are the whole state.

cd /opt/ocis
sudo docker compose stop
sudo tar -czf /root/ocis-$(date +%F).tar.gz -C /opt/ocis config data
sudo docker compose start

To upgrade within a major version, pull and recreate:

sudo docker compose pull
sudo docker compose up -d
sudo docker exec ocis ocis version

For a major version jump, read the upgrade notes first: some releases change config keys or need a migration command, and the release notes list them. Keep the archive from the step above until the new version runs cleanly. Copy archives off the server, and consider the daily backup add-on as a second layer.

What are common problems and fixes?

Nearly every failure leaves a clear line in the container log, so begin with sudo docker compose logs --tail 100 ocis.

  • Permission denied on start: the host folders are not owned by UID 1000; rerun the chown.
  • Caddy cannot get a certificate: DNS does not point at the server yet, or port 80 is closed.
  • Uploads fail at a fixed size: a proxy body limit, usually when Nginx replaced Caddy.
  • Config changes ignored: settings written by ocis init live in /opt/ocis/config/ocis.yaml; environment variables override them only for the keys you set.

Watch memory and disk over time with the graphs in the console or the tools from usage monitoring.

Plans that fit this guide

Base city prices. Every plan includes a dedicated IPv4 address, IPv6, full root and all 18 images.

All prices
PlanFits becauseSizeMonthlyOrder from
A1-2a few users and light use1 vCPU, 2 GB RAM, 50 GB NVMe$7.20/mo$43.20 for 6 months
A2-4team folders, thumbnails and search2 vCPU, 4 GB RAM, 100 GB NVMe$14.40/mo$43.20 for 3 months

Questions about ownCloud Infinite Scale

Is oCIS the same as classic ownCloud Server?

No. Classic ownCloud Server 10 is a PHP application with a database. Infinite Scale is a separate Go codebase with a different storage layout, so moving between them is a migration, not an upgrade.

Does it need MariaDB or PostgreSQL?

No. Metadata lives in the storage folder and the built-in identity service keeps users on disk too, which keeps the stack to one container.

Can I run it without Docker?

Yes, a static binary is published for Linux. Run it under a dedicated user with a systemd unit and the same environment variables; the reverse proxy part does not change.

How much RAM should I plan for?

Two gigabytes covers a handful of users. Give it four or more if you enable full-text search, many thumbnails or office integration.

Why bind the port to 127.0.0.1?

Docker publishes ports through its own firewall rules, which skip ufw. Binding to loopback keeps the service reachable only through Caddy.