DevOps & Cloud
Nextcloud Hub mit Docker & MariaDB unter Ubuntu 24.04 installieren
Nextcloud Hub ist die führende Open-Source-Lösung für private Clouds, Dateisynchronisation, Kalender, Kontakte und Office-Dokumente. Der Betrieb über Docker Compose mit MariaDB und Redis garantiert hervorragende Performance und unkomplizierte Backups.
1. Docker & Docker Compose installieren
bash
sudo apt update && sudo apt upgrade -y
sudo apt install -y curl docker.io docker-compose
sudo systemctl enable --now docker2. Docker Compose Datei erstellen
Erstellen Sie einen Projektordner:
bash
mkdir -p ~/nextcloud && cd ~/nextcloud
nano docker-compose.ymlFügen Sie folgende produktionsreife Konfiguration ein:
yaml
version: '3.8'
services:
db:
image: mariadb:10.11
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- db_data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=RootSecretDbPassword123!
- MYSQL_PASSWORD=NextcloudDbPassword123!
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
redis:
image: redis:alpine
restart: always
app:
image: nextcloud:apache
restart: always
ports:
- 8080:80
links:
- db
- redis
volumes:
- nextcloud_data:/var/www/html
environment:
- MYSQL_PASSWORD=NextcloudDbPassword123!
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=db
- REDIS_HOST=redis
volumes:
db_data:
nextcloud_data:3. Nextcloud starten
Starten Sie die Container im Hintergrund:
bash
sudo docker-compose up -d4. Firewall & Ersteinrichtung
Geben Sie Port 8080 frei:
bash
sudo ufw allow 8080/tcpRufen Sie http://<IHRE-SERVER-IP>:8080 im Browser auf und legen Sie Ihr Administrator-Konto an.
KVM Linux vServer
Suchst du den passenden Linux vServer?
Setze dein Projekt direkt in die Praxis um: Unsere KVM vServer bieten dir volle Root-Rechte, blitzschnellen NVMe-Speicher und verlässliche KVM-Isolation. Flexibles Prepaid-Modell ohne Abo und mit persönlichem Discord-Support.
Volle Root-Rechte (SSH)
Datacenter NVMe SSD
4+ Tbps DDoS-Schutz
100% Prepaid (Kein Abo)