Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
content:serverbasics:docker-nextcloud_aio [2024/04/30 14:47] – Daniel | content:serverbasics:docker-nextcloud_aio [2025/02/08 14:32] (aktuell) – Daniel | ||
---|---|---|---|
Zeile 4: | Zeile 4: | ||
As you do have Docker running as described before, you can easyly install a running Instance of Nextcloud to you PC. Heres the original doc: [[https:// | As you do have Docker running as described before, you can easyly install a running Instance of Nextcloud to you PC. Heres the original doc: [[https:// | ||
+ | |||
+ | ===== Docker Network ===== | ||
+ | |||
+ | To have IPV6 support, Docker needs a local IPV6 Networkrange to use. | ||
+ | |||
+ | So you need to edit the Dockers ~/ | ||
+ | |||
+ | Hint: If that file is missing, just create it. | ||
+ | < | ||
+ | |||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | |||
+ | </ | ||
===== Network preparations ===== | ===== Network preparations ===== | ||
Zeile 11: | Zeile 33: | ||
Per default, only ipv4 networking will be set up by nextcloud-aio. So the setup will check the adress and will fail. | Per default, only ipv4 networking will be set up by nextcloud-aio. So the setup will check the adress and will fail. | ||
- | Further | + | So you need to setup a network |
+ | |||
+ | To Set up the network in Docker, here for example use the script '' | ||
+ | < | ||
+ | # | ||
+ | #recreate network for docker with ipv6 | ||
+ | docker network remove nextcloud-aio | ||
+ | #Use the fixed-cidr-v6 from dockers daemon.json for the subnet and | ||
+ | #Adress :1 for the gateway | ||
+ | docker network create --subnet=" | ||
+ | |||
+ | </ | ||
+ | |||
+ | The subnet and gateway in daemon.json are free to choose, but make sure it does not interfere with some existing network. If you are not sure, use the given ones, as they are locally and should be free for docker. | ||
+ | |||
+ | ===== Firewall ===== | ||
+ | |||
+ | According to this: [[https:// | ||
+ | |||
+ | So, do this as the Docker- User (in rootless- mode) before: | ||
+ | < | ||
+ | |||
+ | sudo sed -i ' | ||
+ | sudo systemctl restart firewalld | ||
+ | systemctl --user restart docker | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===== Docker Network driver ===== | ||
+ | |||
+ | There may be other problems with networking, so use another driver for networking like described here: [[https:// | ||
+ | |||
+ | In general, the default slirp4netns- driver is: a. slow b. not able to uses ipv6 c. not able to do port forwarding, which maybe essential | ||
+ | |||
+ | ==== Pasta driver ==== | ||
+ | |||
+ | A quite new and high performance networking driver with good functionality is pasta. | ||
+ | |||
+ | Pasta needs to be installed locally on the host '' | ||
+ | |||
+ | After that, you need to change the systemd config für docker: | ||
+ | < | ||
+ | |||
+ | docker@pcserver2023: | ||
+ | |||
+ | </ | ||
+ | |||
+ | and edit the file like this: | ||
+ | |||
+ | < | ||
+ | [Service] | ||
+ | Environment=" | ||
+ | Environment=" | ||
+ | Environment=" | ||
+ | |||
+ | </ | ||
+ | |||
+ | now do | ||
+ | |||
+ | < | ||
+ | docker@pcserver2023: | ||
+ | |||
+ | docker@pcserver2023: | ||
+ | |||
+ | docker@pcserver2023: | ||
+ | |||
+ | </ | ||
+ | |||
+ | You shold now have a fast network driver with port forwarding. | ||
+ | |||
+ | ===== Dockers Yaml ===== | ||
+ | |||
+ | In your Docker- Compose- Drirectory, create a new Directory called '' | ||
+ | |||
+ | ===== AIO Webinterface ===== | ||
+ | |||
+ | It is important to understand, that the Docker- Service itself is NOT a working Nextcloud- Instance! | ||
+ | |||
+ | The Service of this YML - called '' | ||
+ | |||
+ | So what you gain first, is a new Webserver on a seperate Port (default: 8080), wich will be the Administration Endpoint for you. | ||
+ | |||
+ | **To access that Server from another PC, i STRONGLY DO NOT ADVISE to open the Firewall- Port of your Host and to make that service available to the internet!** | ||
+ | |||
+ | Instead, you should use SSH Port Forwarding to administrate the Service. To have that, you maybe use ssh like this: | ||
+ | < | ||
+ | |||
+ | ssh -L 8080: | ||
+ | |||
+ | </ | ||
+ | |||
+ | After that, you can access the AIO- Mastercontainer WEB- GUI on [[https:// | ||
+ | |||
+ | ===== Caddy Service ===== | ||
+ | |||
+ | Now you need to add the Nextcloud- Service to you Caddyfile ( https:// | ||
+ | |||
+ | Add those lines First: | ||
+ | < | ||
+ | |||
+ | https:// | ||
+ | | ||
+ | # | ||
+ | #For install Domaincheck needed: | ||
+ | | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | |||
+ | Mind, that when starting Nextcloud-AIO, | ||
+ | |||
+ | So we need this small quirk to work around it. | ||
+ | |||
+ | After you have setup the Configuration in Nextcloud, when installing and starting the Services, comment out that line and uncomment the apache- line. Than restart Caddy - you won't need that line again. | ||
+ | |||
+ | ===== Final Nextcloud- Setup ===== | ||
+ | |||
+ | Now, ssh on your Host and go to [[https:// | ||
+ | |||
+ | and finish everything on that WEB- GUI. Mind, that installing the Services will take a long time. Don't panik if nothing seems to happen. Just let it do one hour or more. | ||
+ | |||
+ | Enjoy your fully flagged Nextcloud. | ||
+ | |||
+ | The next step wpuld now be to integrate Nextcloud with your IPA- Domain. Checkout IPA- Docs here and come back, when its working. | ||