OwnServa
Storage · Installation guide

How to install ownCloud Infinite Scale on Ubuntu

Set up ownCloud Infinite Scale with Docker, persistent storage and HTTPS. Initialize oCIS and sign in with your first admin account.

ownCloud Infinite Scale, also called oCIS, is different from classic ownCloud Server. This walkthrough uses owncloud/ocis, its built-in identity services and persistent configuration and data. You do not create a MySQL, MariaDB or PostgreSQL database for this setup. An OwnServa starting estimate is 2 CPU cores and 4 GB RAM, with storage sized for your files.

Before you start

Prepare Docker and a public HTTPS domain. This guide assumes drive.example.com resolves to your server and can obtain a valid certificate. Its identity-provider redirects use that exact address; a temporary IP or an unrelated localhost URL is not interchangeable.

Reserve loopback port 9200. Use a separate directory so existing application volumes cannot be confused with this installation:

mkdir -p ~/selfhosted/owncloud
cd ~/selfhosted/owncloud
umask 077

Configure persistent storage

Save as compose.yaml:

services:
  ocis:
    image: owncloud/ocis:latest
    restart: unless-stopped
    command: server
    ports:
      - "127.0.0.1:9200:9200"
    environment:
      OCIS_URL: https://drive.example.com
      PROXY_HTTP_ADDR: 0.0.0.0:9200
      PROXY_TLS: "false"
      OCIS_INSECURE: "false"
      IDM_CREATE_DEMO_USERS: "false"
    volumes:
      - configuration:/etc/ocis
      - files:/var/lib/ocis
volumes:
  configuration:
  files:

Use a supported stable release tag or digest in place of latest for a repeatable production deployment. The configuration volume contains identity and service secrets; the data volume contains persistent application state and file storage. Both need backups. Neither is a disposable cache.

The backend is HTTP on loopback because Caddy terminates HTTPS. OCIS_INSECURE remains false: certificates used for the public identity URL must validate. This is not the upstream self-signed-certificate evaluation setup.

Initialize oCIS once

sudo docker compose config --quiet
sudo docker compose pull
sudo docker compose run --rm ocis init

Initialization writes the configuration and generates initial administrator credentials. Save the printed admin password in your password manager before leaving the terminal. Do not enable demo users, use a shared default password, or rerun initialization with force-overwrite against an existing installation.

Set up a Caddy block for drive.example.com pointing to 127.0.0.1:9200, following the HTTPS instructions. DNS and certificate issuance must work for the configured hostname. Then start oCIS:

sudo docker compose up -d
sudo docker compose ps
sudo docker compose logs --tail=80 ocis

Sign in for the first time

Open https://drive.example.com and sign in as admin with the password generated by ocis init. This first account is already created; there is no separate SQL setup wizard or public administrator signup step.

Change the initial password through the account's password controls and store it securely. Create an everyday user through the user-management interface rather than sharing admin access. Upload a small file, download it, and test a share with the permissions you intend to offer. Configure and test outgoing mail if invitations or notification delivery are part of your workflow.

Protect your configuration and files

Back up both volumes together using the upstream backup procedure and preserve the exact image version. The configuration includes secrets that are required to interpret the installation's identity and storage state. Do not copy individual files into oCIS's internal data folders as a way of importing them; upload through supported interfaces.

Troubleshooting

  • Login redirects loop: ensure OCIS_URL, browser URL and proxy hostname are identical, including HTTPS and any explicit port.
  • Certificate validation fails: check public DNS, the certificate chain and whether the server can reach its own configured HTTPS hostname. Do not permanently bypass validation to hide a broken domain setup.
  • Missing secrets/configuration: check the configuration volume and initialization output; do not overwrite a populated installation.
  • Permission errors: verify the image's documented user and volume ownership before changing permissions.

Official references

Review ownCloud's administrator documentation, initialization documentation and the oCIS project. Its minimal evaluation guide uses self-signed certificates; this walkthrough instead assumes a valid public HTTPS endpoint.

Written by OwnServa. Check the official release notes before updating, keep independent backups and test a restore before relying on your installation.

Get it done for you.

Want a hand setting up ownCloud Infinite Scale? Create an OwnServa account and tell us what you want to run. We can discuss the server, installation and first-time setup with you.

We’ll confirm the scope, availability and any costs before work begins.