How to Install OpenCloud on Rocky Linux 9 Using Docker

OpenCloud is a lightweight, modern, self-hosted cloud platform that lets you securely store and sync files through a web interface. It is fully container-based and easy to deploy using Docker. Many users set up OpenCloud on VPS servers to create their own private cloud similar to commercial services.

This guide explains how to install OpenCloud on Rocky Linux 9 using Docker Compose.

Prerequisites

  • Fresh Rocky Linux 9 server
  • Root or sudo access
  • Domain pointed to your server IP (example: opencloud.domainhere.info)
  • Minimum 2 GB RAM recommended

Update the Server

dnf update -y
dnf install curl git nano -y

Install Docker

Add Docker CE repository:


dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo

Install Docker engine and Docker Compose v2 plugin

dnf install docker-ce docker-ce-cli containerd.io docker-compose-plugin -y

Enable and start Docker:

systemctl enable --now docker

Check versions:

docker --version
docker compose version

Clone OpenCloud Compose Repository

cd /root
git clone https://github.com/opencloud-eu/opencloud-compose.git
cd opencloud-compose

Configure Environment Variables

cp .env.example .env
nano .env

Edit the following:

OC_DOMAIN=opencloud.domainhere.info
INITIAL_ADMIN_PASSWORD=StrongPassword123!

Replace with your actual domain and strong password.

Configure Firewall

firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
firewall-cmd --reload

Deploy OpenCloud Containers

Start OpenCloud with Docker Compose:

docker compose -f docker-compose.yml -f traefik/opencloud.yml up -d

Check running containers:

docker ps

Access OpenCloud Web Interface

Open your browser:

http://opencloud.domainhere.info

Login details:

Username: admin

Password: value set in .env

images

After login, you will first see the login page and then a redirect to the OpenCloud dashboard once initialization finishes.

images

You'll see the Dashboard as below.

images

Conclusion

You have successfully installed OpenCloud on AlmaLinux 9 using Docker Compose. Your private cloud platform should now be accessible securely via your configured domain.


CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME for 10% off!

1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month

Available Locations: LAX | MIA | ATL | FRA | AMS