Skip to main content

NextCloud

NextCloud is an open-source platform for file synchronization and sharing — similar to having your own private cloud storage. It lets you host files, calendars, contacts, and more on your own server, giving you full control over your data and privacy.

NextCloud supports file syncing, online collaboration, sharing, and integrates with many apps and services. It’s widely used by businesses, organizations, and individuals looking for secure cloud solutions.

Docker Compose Setup

Below is a sample docker-compose.yml to run NextCloud:

version: '3.2'

networks:
default:
name: nextcloud

services:
app:
image: harbor.spacemit.com/application/nextcloud:28.0.3
restart: unless-stopped
volumes:
- ./Nextcloud_docker/app:/var/www/html
environment:
- MYSQL_PASSWORD=nextcloud_password
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=db
- TZ=Asia/Shanghai
ports:
- 8443:443 # Map HTTPS Port
networks:
- default

db:
image: harbor.spacemit.com/application/mariadb:10.11.6
restart: unless-stopped
volumes:
- ./Nextcloud_docker/db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=nextcloud_mysql_password
- MYSQL_PASSWORD=nextcloud_password
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- TZ=Asia/Shanghai
networks:
- default

How to Access

After launching the services with Docker, open your browser and visit:

https://HOST_IP:8443

Replace HOST_IP with your actual server IP.

You’ll be prompted to set up your admin account and password during the first login.

To know more about Nextcloud, please visit the Nextcloud official page.