Zum Inhalt springen

Nextcloud/AIO/Installation: Unterschied zwischen den Versionen

Aus Foxwiki
DanielZorin (Diskussion | Beiträge)
 
(80 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
'''{{BASEPAGENAME}}'''
'''Nextcloud/Installation/AIO''' - Nextcloud All In One Installation


== Beschreibung ==
== Beschreibung ==
=== Voraussetzungen ===
; Docker-Installation
* Funktionierende [[Docker/Installation#Standard_Debian_Installation|Docker-Installation]]
* Für die Arbeit mit Nextcloud AIO müssen die [[Docker/Installation#Installation_aus_dem_Debian-Repository|Docker-Pakete installiert]] sein


== Installation ==
=== Vorbereitung ===
[[Redis]] erfordert die Aktivierung der Kernel-Funktion vm.overcommit_memory


; /etc/sysctl.d/99-override.conf
<syntaxhighlight lang="ini" highlight="" copy line>
vm.overcommit_memory=1
</syntaxhighlight>


; Änderungen übernehmen
<syntaxhighlight lang="bash" highlight="1" copy line>
sudo sysctl --system
</syntaxhighlight>


2. Installieren Sie NC-AIO gemäß den Anweisungen unter https://nextcloud.com/blog/how-to-install-the-nextcloud-all-in-one-on-linux/.
== Nextcloud Docker ==
 
; Nextcloud in Docker laden und starten
 
<syntaxhighlight lang="bash" highlight="1" copy line>
; Commands
sudo docker run \
1. Installieren Sie Docker gemäß den Anweisungen unter [[Docker/Installation#Standard_Debian_Installation|Anweisungen]].
  --sig-proxy=false \
  --name nextcloud-aio-mastercontainer \
  --restart always \
  --publish 80:80 \
  --publish 8080:8080 \
  --publish 8443:8443 \
  --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
  --volume /var/run/docker.sock:/var/run/docker.sock:ro \
  ghcr.io/nextcloud-releases/all-in-one:latest


2. Um Nextcloud in Docker zu laden und zu starten, wird der folgende Befehl verwendet
<syntaxhighlight lang="bash" copy line>
sudo docker run --sig-proxy=false --name nextcloud-aio-mastercontainer --restart always --publish 80:80 --publish 8080:8080 --publish 8443:8443 --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config
</syntaxhighlight>
</syntaxhighlight>
3. Next, you can open the AIO interface on https://localhost:8080 or https://the.servers.ip.address:8080.
; Why you should use an ip-address
:* It’s important to always use an ip-address if you access this port, and not a domain. Otherwise, you risk that HSTS might block access to it later!
* You need to accept the self-signed certificate. Then you should see this:
* Alternatively, if ports 80 and 8443 should be opened in your firewall/router and a domain is configured to point to your server, you can reach the AIO interface with a valid certificate using https://your-domain.com:8443.
* Click on “Open Nextcloud AIO login” and paste your password:
* Then, you should see the AIO interface:
* Next, type in your public domain that you you’ve got before doing this guide. The interface should help you figure out the exact steps. (Set up DDNS for your domain to point to your public IP, port-forward at least ports 443/tcp, 3478/udp, and 3478/tcp to your Linux machine.)
* After you’ve set it up correctly, it should allow you to pass to the next step, where you can configure the wanted optional add-ons and the timezone, and click on “Start containers” to download and start them.
* At this point, you should see a spinner that will take a while depending on your internet speed. It should take around 10 minutes or more.
* When all containers are downloaded and started, you will see this screen showing the containers still starting, which will do the first installation for you:


* When everything is done, you should see this screen:
; Beschreibung
 
# Startet einen neuen Container aus einem Image
* Finally, you can now open your new Nextcloud instance and log in with the given admin credentials.
# Deaktiviert die Weiterleitung von Signalen (z. B. SIGINT/SIGTERM) vom Docker-Client an PID 1 im Container
 
# Vergibt einen eindeutigen Containernamen zur späteren Referenz
* That’s it! Everything is set and ready for production.
# Aktiviert die Neustart-Richtlinie „always“: Container wird nach Absturz oder Daemon-Neustart automatisch neu gestartet außer nach manuellem ''docker stop''
 
# Container: 80/TCP --> Host: 80/TCP 
 
# Container: 8080/TCP --> Host: 8080/TCP 
 
# Container: 8443/TCP --> Host: 8443/TCP
== Backups ==
# Bindet ein benanntes Volume ein. Persistiert Konfiguration unter ''/mnt/docker-aio-config'' im Container. Volume wird automatisch erstellt, falls nicht vorhanden.
 
# Bindet den Docker-Daemon-Socket des Hosts im Container ein (read-only). Erlaubt dem AIO-Mastercontainer, über die Docker-API Host-Container zu erstellen/stoppen/konfigurieren. :ro verhindert das Modifizieren/Ersetzen der Socket-Datei, begrenzt jedoch nicht die API-Berechtigungen.
Backups werden mit der integrierten Backup-Funktion Nextcloud AIO auf Basis von BorgBackup erstellt.
# Image-Referenz inkl. Tag. ''latest'' verwendet den jeweils neuesten Build
 
 
* Um die Backups zu konfigurieren, müssen Sie einen Ordner für Backups erstellen, z. B. /mnt/backup
 
 
sudo mkdir -p /mnt/backup
 
* Anschließend müssen Sie sich als Admin anmelden und den Pfad Settings > Overview > „Open Nextcloud AIO Interface” durchlaufen.
* Auf dieser Seite finden Sie den Abschnitt „Backup and restore”.
* Hier können Sie das Verzeichnis für die Sicherung angeben und den Remote-Server für Backups festlegen.
*
Geben Sie im Feld „Local backup directory“ „/mnt/backup“ ein und klicken Sie auf „Submit“. AIO erstellt selbstständig ein Borg-Repository unter dem Pfad /mnt/backup/borg.
 
 
; fail2ban nextcloud install
 
sudo apt install fail2ban
 
nano /etc/fail2ban/filter.d/nextcloud.conf
 
 
 
 
 
 
 
 
 
 
 
<noinclude>


== Anhang ==
== Anhang ==
Zeile 89: Zeile 53:
<categorytree hideroot=on mode="pages">{{BASEPAGENAME}}</categorytree>
<categorytree hideroot=on mode="pages">{{BASEPAGENAME}}</categorytree>
</div>
</div>
----
* [[Nextcloud/AIO/Backend]]
----
----
{{Special:PrefixIndex/{{BASEPAGENAME}}/}}
{{Special:PrefixIndex/{{BASEPAGENAME}}/}}
Zeile 104: Zeile 70:
==== Weblinks ====
==== Weblinks ====


{{DEFAULTSORT:new}}
[[Kategorie:Nextcloud/AIO]]
{{DISPLAYTITLE:new}}
[[Kategorie:Nextcloud/Installation]]
 
[[Kategorie:Docker]]
[[Kategorie:new]]


</noinclude>
</noinclude>

Aktuelle Version vom 1. Januar 2026, 11:36 Uhr

Nextcloud/Installation/AIO - Nextcloud All In One Installation

Beschreibung

Voraussetzungen

Docker-Installation

Vorbereitung

Redis erfordert die Aktivierung der Kernel-Funktion vm.overcommit_memory

/etc/sysctl.d/99-override.conf
vm.overcommit_memory=1
Änderungen übernehmen
sudo sysctl --system

Nextcloud Docker

Nextcloud in Docker laden und starten
sudo docker run \
  --sig-proxy=false \
  --name nextcloud-aio-mastercontainer \
  --restart always \
  --publish 80:80 \
  --publish 8080:8080 \
  --publish 8443:8443 \
  --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
  --volume /var/run/docker.sock:/var/run/docker.sock:ro \
  ghcr.io/nextcloud-releases/all-in-one:latest
Beschreibung
  1. Startet einen neuen Container aus einem Image
  2. Deaktiviert die Weiterleitung von Signalen (z. B. SIGINT/SIGTERM) vom Docker-Client an PID 1 im Container
  3. Vergibt einen eindeutigen Containernamen zur späteren Referenz
  4. Aktiviert die Neustart-Richtlinie „always“: Container wird nach Absturz oder Daemon-Neustart automatisch neu gestartet außer nach manuellem docker stop
  5. Container: 80/TCP --> Host: 80/TCP
  6. Container: 8080/TCP --> Host: 8080/TCP
  7. Container: 8443/TCP --> Host: 8443/TCP
  8. Bindet ein benanntes Volume ein. Persistiert Konfiguration unter /mnt/docker-aio-config im Container. Volume wird automatisch erstellt, falls nicht vorhanden.
  9. Bindet den Docker-Daemon-Socket des Hosts im Container ein (read-only). Erlaubt dem AIO-Mastercontainer, über die Docker-API Host-Container zu erstellen/stoppen/konfigurieren. :ro verhindert das Modifizieren/Ersetzen der Socket-Datei, begrenzt jedoch nicht die API-Berechtigungen.
  10. Image-Referenz inkl. Tag. latest verwendet den jeweils neuesten Build

Anhang

Siehe auch




Dokumentation

Links

Projekt

Weblinks