Skip to content
Back to blog

Magichosting

Nextcloud with Docker Compose: Database, volumes, HTTPS and backups

E
Elias Bieber
Estimated reading time: 1 min

Nextcloud is more than one container. Plan persistent data, the database, reverse proxy, background jobs and recovery as one system.

NextcloudDockerCloudMariaDBLinux

Install Nextcloud with Docker

Requirement: Docker and Docker Compose. Create directory and docker-compose.yml (MariaDB + Nextcloud).

mkdir -p /opt/nextcloud && cd /opt/nextcloud
# docker-compose.yml with services: db (mariadb:10.6), app (nextcloud:latest), port 8080:80
docker-compose up -d

Browser: http://YOUR-IP:8080 – create admin account. Change passwords in docker-compose.yml; for production use HTTPS (reverse proxy) and backups.

Was this post helpful?

MagicHosting – Hosting with real value

Hosting pays off with MagicHosting: fair pricing, current deals and operation in SkyLink RZ. Servers, domains and personal support – no hidden costs.

  • Current limited offers from our server exchange
  • Affordable domains with transparent pricing and great offers
  • Powerful DDoS protection for maximum availability
  • Personal support when you have questions or issues