Straight to the point, enough explanation for someone vaguely familiar with the tools can understand, addressing all major points related to the topic. Everything worked immediately, documentation is absolutely perfectly written, excellent job ! This is some high quality tutorial !
THANK YOU Christian for putting together a very good tutorial for NextCloud inside of Docker. I've watched many videos and while they all have different approaches they are not nearly as concise as your video on this topic. Also, it is very clear that you quality tested the process many time to prove that it actually worked before making a video. So many others - (99.9%) put a video out with some general info without fully understand or quality checking their process which turns into failure and frustrations for the general user. I can say - if anyone wants to get this working without pulling your hair out - watch Christian's tutorial - it's the BEST one on the topic!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Struggled with this for a while, not knowing why, but for those that already installed npm in a previous tutorial, the npm part of the docker-compose is apparently omittable, so you just need the nextcloud container and the nextcloud_db (mariadb) container, also if you get thrown an error by innodb when trying to make an admin account saying that it doesn't accept compressable format or something, then replace "command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW" in the docker-compose with "command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed", and you're all set (worked for me at least)
Hello, I am trying to get this to work, and nothing seems to work. What exactly should I copy from his compose file? The separated volumes / networks? I was able to deploy the containers, but I am not able to access Nextcloud. Nginx works just like before
Hello. I have been able to fix everything: removed port 80 from OMV dashboard and assigned to nextcloud; linked nginx and nextcloud containers to the same frontend network. Everything works fine! Many thanks for the video, I am sharing it with friends of mine, it is simply the best video on this argument I have been able to find on the net!
Thank you so much for this. It worked perfectly. You are becoming one of my favourite content providers on RU-vid. I know you have had some doubts recently but the way you explain things is verry clear and you are a great teacher. One of the best on RU-vid. I really appreciate what you do and I am sure there are many others who feel the same.
You saved my life when it came to client syncing. The documentation was utter shit and you've just saved me. I've been troubleshooting for 6 hours and you solved my issues in 10 minutes. Thank you SO much!!!
Thank you so much. I was beating my against a wall figuratively for days trying to figure out why my mobile nextcloud client wouldn't connect to my instance. 10 minutes was all I needed! I was so relieved I had to immediately login to my google account to post this.
Best tutorial I have ever watched. Seriously. A was searching to install nextcloud on my docker server since several months and I watch your video and all is clear, all is working. Thank you very much for this tutorial!
Thank You. I've been playing around with stacks like that for some time and there was always something not right. Your is very close to perfection. Now i have to figure out how to separate some volumes and folders for nextcloud so i can rsync them to another server. Keep on doing videos on Dockers they are very helpful. I wish your channel to grow and hopefully you'll get some money back for your time. Good luck.
Thanks for your video! One (supposedly) very common issue in combination with nginx/fpm and nginx proxy manager is the fact that IP addresses are not logged properly. This will lead to the brute force protection not working. It would be very helpful if this video could be extended by explaining how this needs to be set up (e.g., how npm, (nextcloud) nginx and the config.php needs to be adadpted).
Just wanted to pop in with another thanks for a great video. After almost 30 years with Linux, I'm finally starting to adopt a self-hosted lifestyle. I found your video after failing to deploy AIO through Cloudflare to a home server protected by npm (but unreachable via 443). Took just a little tweaking here and there, but you even covered the little things that break, such as overwriteurl to lock in the port number and overwriteprotocol to fix login issues with the Android app. I'm still trying to figure out why no pictures load and why my Android app says I can't upload because the server is in maintenance mode. Thanks again for an excellent introduction. Great job.
That's great! I manage to set that up on a raspberry Pi 3. Now, I have to add some email server and make the megic work somehow, so nextcloud can send email confirmations.
@christianlempa I am trying to set up nextcloud with a little different setup. I have "nginx proxy" already installed and just wanted to add mariadb and nextcloud. So i added the networks (including the external:true) and the services (nextcloud-app, nextcloud-db) as well as the volumes. For my nextcloud-data volume i wanted to use a "nfs-docker-volume" like you explained in your other video (Don't use local Docker Volumes). So i created the volume according to your guide an tested it- it works. Next i used the created volume "nextcloud-data-nfs" under the voulmes section in the docker compose-file and i got it running. Now when i try to create the create the docker files i am getting permission problems... ERROR: for nextcloud Cannot create container for service nextcloud: failed to chmod on /var/lib/docker/volumes/nextcloud-data-nfs/_data: chmod /var/lib/docker/volumes/nextcloud-data-nfs/_data: operation not permitted How do i get those permission right? I'd apprechiate your help. regards,Markus
I had an issue where I couldn’t log into NGINX and it said bad gateway. This was an authentication issue with the database. I made sure my passwords matched in my docker compose file, deleted the existing containers and their volumes, and ran it again.
Excellent tutorial. Do you have any suggestion which lightweight DB image to choose for a Raspberry Pi with 64-bit Rspbian instead of MariaDB for better performance?
In case anyone else runs into this, I didn't understand that NGINX proxy manager needs access to both the frontend and backend network. At least that was seemingly the problem with my setup.
First I appreciate the effort you're making to answer every comment. For that do I need installation do I have to install apache2 outside the docker?or as docker image? Or I don't need it at all?. And if I'm planning to install pihole with the explained bundle in the video would you please be so kind to make a video or elaborate about how to do so?
Thanks for the awesome guide! I think it worked, but I am not able to generate the ssl certificate in the nginx-manager. I just get a "internal server error", when I try to create it inside the proxy host (as you do), so I tried to just create one in the ssl certificates tab, to see what happens. In the error it says that I exceeded the let's encrypt rate limits for this domain, wich is (if I got it right) 10 overrides per week for the same domain. That is likely, since I re-deployed another reverse-proxy container multiple times, when I followed another nextcloud tutorial (that didn't work unfortunately). Soooo I most likely have to wait a couple of days till I can get the ssl certificate (hopefully), but in the meantime it would be super nice if you could answer two questions: btw. this is my first server, so sorry for the nooby questions... 1: Could there be another reason for the error than the rate-limit? I'm hosting on an old laptop with ubuntu, dyndns service setup with a proper domain, forwarded ports 80 and 443 in my router and the ddns points to my servers ipv6 (have only ipv6 access, bc I have a ds-lite connetion), so I should be good, right? 2: Is there a way to at least access the nextcloud installation through my local network while I wait for the certificate? that would also be great for transfer rates, if I could use local home network access at home and through the domain remote. Thank's in advance! Great content, you got my subscription. Keep it up!
btw I do have the proxy host set up without the ssl right now, but when I try to access my domain withouth the ssl, I just get an "ERR_EMPTY_RESPONSE" error.
Hi Chris, thx a lot for the tutorial. It's precise and to the point. Had to turn audio into slow motion. ;-) At teh end I received these warnings: "Dein Web-Server ist nicht richtig eingerichtet um "/.well-known/caldav" aufzulösen.""Dein Web-Server ist nicht richtig eingerichtet um "/.well-known/carddav" aufzulösen". I am NOOB to working with Docker. Please provide some hints for how to fix this.
Hallo Detlef, im Video habe ich kurz darüber gesprochen: docs.nextcloud.com/server/19/admin_manual/configuration_server/reverse_proxy_configuration.html hier müssen im nginx proxy manager die locations eingestellt werden. Einfach beim proxyhost im npm auf "advanced" gehen und das entsprechend so einstellen, für den Nginx webserver.
Thanks for this Tutorial, I tried to setup exactly that the last days and didn't succeed. I will take the next 10 min doing that by your Tutorial ;) Do you mind making a follow-up for transferring a traditional nextcloud (no docker, no NginxProxyManager) to your new cloud?
Thank you 😊, well I may take a look but I don't know if I would make a dedicated video to that. Maybe a more general video about transferring non-docker to docker apps? I'm thinking about it. Great suggestion!
This was great until I might have done something wrong. I cannot access nginx on port 81 on a cloud instance. It just loads continuously and nginx is running.
Hello, thank you very much for the tutorial, everything works for me the only thing I don't understand is why when I open it it gives me an error: directory "/" not found
Any chance to see this updated for podman/SELinux enabled RedHat/Rocky/AlmaLinux for current AIO? I don't think this would work on current AIO with RH.
followed this tutorial, but when trying to login to nginx with default creds, I'm getting bad gateway. not sure why this is. any thoughts anyone? thanks
Great tutorial! Thanks a lot! I'd like to ask how do we best protect the administrative url we reach after such an installation. After all the ssl installs and the reverse proxy settings, I think that all that stands between you and the administrative page in the end is just a strong password. Do you have any suggestions?
hey i need some help.. it is not working :( - i get to the standard page of nginx but the redirect to any subsite does not work. it just says server not found. i dont have any idea why ports are forewarded.
Is there a way to move the Nextcloud directory to another drive in the container, such as another mount like another drive separate from the docker container install drive?
Excellent video. I'm new to this, so maybe this is obvious, but why go through a proxy if your client is in the local network?. Isn't it better to expose the network ports on Nextcloud so clients can connect directly?
I believe the proxy is essentially just another layer of security. It can filter common exploits to prevent an attacker from running them directly on your web server. It also has a fairly simple interface for adding a Let's Encrypt certificate.
thanks for the tutorial. Any how, if my service behind the reverse proxy runs eg on port 9001, I wonder what to enter in "proxy host". If i add that port there it always tries to open Port 9001 from my public domain but it should route 443 -> 9001 transparently. Any ideas?
Hey, so in the part where you setup the whole thing on an existing setup, you talk about 'like in my other video'. But what is the video you are talking about with this setup? I want to be on the same page as you and want to follow the video but it's not linked here and you have a lot of viedos :)
Hello Error while trying to initialise the database: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 4047 InnoDB refuses to write tables with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE.
Any suggestions for the best way to automatically update the Let's Encrypt certificate in a few months, and for updating the docker image to the latest?
Hi Christian, great tut. I already have NGINIX installed however the network it is connected to is 'bridge' I tired replacing this on the networks however it gives an error. Can you please suggest what I would do
Hmm sadface. im getting a yaml scan error on your preconfigured .yml multiple lines reporting missing expected ":" when trying to "docker-compose up -d" Couldnt even get past first step with this error.
I'm quite new to this docker stuff (like I made docker with nextcloud running and that's basically all) But can't be there just one mariadb docker image for both proxy and nextcloud? Are special parameters important, aren't they specific to database files?
Hey bro, I did some tutorials about WireGuard, because I think that's the easiest way of setting up a VPN server for your home network: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-GZRTnP4lyuo.html
followed this tutorial and my domain keeps going to nginx not nextcloud. Why?? Only difference is my portainer is running on port 80 already so i had to change the ports to 81,82,8443
But is the config Persistent? I don’t think so because you haven’t set a volume or bind mount for it. So every time you restart the container the overwriteprotocol gets deleted. Am I Right?
Okay, haven't heard the full video - but this is exactly the issue i'm having so will report back if all goes well.. Originaly i had Nextcloud on a Linode VPS and the 'CertBot' SSL cert for it - 'claimed' ports 80 and 443 BUT NPM needs these too!! Anyway, i'll listen to the vid and see if the solution appears..!
@@christianlempa That is very generous, I am still trying to deploy your nginx and ssl video to my network, still cant get ssl to work with cloudflare but ive watched the video so many times that I keep noticing that prompt...
Moin Christian, NC und NPM laufen seit 8 M stabil und Watchtower hält das ganze current. Jetzt suche ich eine Backup-SW um BU auf einem NAS zu speichern. Das Tutorial "Backup in Linux Servers - Docker Volumes, and Databases" ist schwierig, da die einzelnen Mappings hingehen müssen. Ist duplicati die beste SW dafür? Und gibt es ein Tutorial für Backup zu diesem Setup "NC & NPM in 5"?
thanks for this, im running into the cron job issue, where cron jobs dont run as scheduled when running nextcloud on a docker container. there is a github issue where we need to set up a seperate container to run cron jobs, i see this is missing on the docker compose file provided. i dont know how to properly hookup the cron container based on this configuration. i would appreciate any help on this as im trying to migrate my google photos to nextcloud using the google integration app, but it requires cron jobs to be set up properly to complete the migration. SOLVED: i solved this, i added the answer as a reply but The algorythm deleted it
hi, i followed your guide and its working good , but i cannot upload large files (6gb) from MacOs Desktop app, it says 413 file too big . I adjusted npm to set the max client body size but still have the 413 error ... any ideas ?
Hello, thanks for your video, it has helped me with my nextcloud server, but I have a problem with NPM not working for me /.well-known/caldav and /.well-known/carddav . If you know how this problem could be solved, could you explain it please? Thank you
I felt the Nextcloud GUI is really sluggish. Flipping between simple apps like notes + files takes 0.5 - 1.5 seconds on a default regular docker container with mysql on a 32gb server. I set php memory limit to 1024M and verified memcaching is on. Is this just sloppy coding on Nextcloud's part? Openproject for example feels supersnappy in comparison.
I meet errors like: Error while trying to initialise the database: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 4047 InnoDB refuses to write tables with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE. I think it's the error involving mysql account. Any suggestions?
Sir can you help me one thing. I install nxinx proxy manger in portainer, but i went to install using 80,81 and 443 port this is not install but when i change it 40080, 40081 and 40443 then it is install and run nginx but after that when i add host this is not redirect, I dont know frome where i can change.
Most likely, the nginx stack failed building (=means nginx could not connect to its mariadb instance - maybe because of port or password issues). It would be helpful for us if you provide your docker-compose and look for fails at the building process. Another Idea i just had is that maybe this part is causing problems when doing a fresh install and leaving the empty value.. Maybe it helps to delete that part. "networks: frontend: # add this if the network is already existing! # external: true backend:"
Hi Christian. Firstly, thanks for the vids. You've got this noob further than anyone else is getting Nextcloud up and running with Docker & Portainer. However, following your tutorial, I get as far as being able to open Nextcloud in a browser, but when I hit the button to finish setup, it throws up an error: "Error while trying to initialise the database: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 4047 InnoDB refuses to write tables with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE." Any ideas where I've gone wrong? Or anyone else? Any help would be greatly appreciated.
I found the solution. For anyone with the same issue, change the command in the nextcloud-db container section to: command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed
Hello! Thank you very much for the videos! I got a problem. NPM is running and i added the proxy. But when i connect via fqdn to my nextcloud i got the error "ERR_EMPTY_RESPONSE " and i don't know why...in the nc container i got the config.sample.php file and copy that to config.php and added the trusted domains.
it's hard to find the issue here in the comment section, so why don't you come to our Discord Community, and post some details about your setup, maybe somebody can help you out ;)
hi y ave this error in install of NextCloud : SQLSTATE[HY000]: General error: 4047 InnoDB refuses to write tables with ROW_FORMAT=COMPRESSED or KEY_BLOCK_SIZE. how to Fix it Please ? (sorry for my bad english)
Got some Problems with big files downloading.. I used this Custom Nginx Config in the Advanced Tab from NPM: ######################## proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_max_temp_file_size 16384m; client_max_body_size 0; ######################## grüße
I know this is an old video but I referred back it since I deployed my home server...finally. Eventhough I followed you almost exactly, I have a bug. I can enter to nextcloud through all my devices but I can't upload anything! Not even a single file! I get a message "Unknown error occurred". I'm not sure if it is something with the proxy or as I read elsewhere to increase upload file size. If it is the later I am lost on which file I need to edit. I hope somebody can help here...I'm desperate.
I followed your instructions but the container isn't named 'nextcloud-app' rather 'nginx-proxy-manager_nextcloud-app_1'. Which is based on the folder where I stored the 'docker-compose.yml'. I'm not able to connect to the container because I don't know what to enter in the 'Forward Hostname / IP' of the 'New Proxy Host' window in Nginx Proxy Manager.
Anyone else getting these errors in setting > overview Your web server is not properly set up to resolve "/.well-known/webfinger". Further information can be found in the documentation ↗. Your web server is not properly set up to resolve "/.well-known/nodeinfo". Further information can be found in the documentation ↗. If so, were you able to fix them? and how?
Not working for me. cant' t login in nginx manager message bad gateway. That container itself is in unhealthy status with in the log [5/29/2021] [4:00:49 PM] [Global ] › ✖ error ER_ACCESS_DENIED_ERROR: Access denied for user 'npm'@'192.168.16.2' (using password: YES) s6-svscanctl: fatal: unable to control /var/run/s6/services: supervisor not listening [cont-finish.d] executing container finish scripts... [cont-finish.d] done. Port 80,81,443 are open on server and router....any suggestion?
Die Änderungen in der config.php machst du ja (wenn ich das richtig verstehe) von innerhalb des Containers aus. Man könnte doch auch direkt die Datei auf dem Wirt, also ausserhalb des containers ändern (/var/lib/docker/volumes/nextcloud_nextcloud-data/_data/config/config.php). Machst du das nur, um zu zeigen wie man innerhalb von Containern arbeitet, oder gibt es einen anderen Grund?
Gute Frage, tatsächlich ist mir das auch erst später aufgefallen 🤣. War also nicht wirklich beabsichtigt, aber ist ja auch interessant zu sehen wie man sich in einen Container verbindet 😊
I've followed your tutorial, but I keep getting an internal server error (from NextCloud). The only thing different I'm doing is pointing the persistent volumes to where I want them to be stored and I've added ports for the nextcloud-app. I wasn't able to get "nextcloud-app" to work with NGINX Proxy Manager, but was able to get it to connect with my server IP and, in my case, port 8085. However, I keep getting an Internal Server error loop and I'm not sure where the logs are storing. They aren't appearing in my persistent volume. I have also removed your NPM information from the compose file as I already have NPM running.
@@Dmkjr I have a similar problem. I have followed the instructions in this video, and I am getting "bad gateway" errors when accessing nextcloud from the nginx proxy. I am getting connection timeout errors when I attempt to connect to nextcloud from anywhere else! Apparently you somehow figured out a solution. Could you possibly publish it (if you can remember what you did)?
I´m getting 502 bad gateway when trying to log into npm. I followed everything step of this video step by step(Installed it fresh on a VM). Google said this 502 issue is most likely caused because npm can´t access the other containers, but in the compose file every needed instance is located in the backend network. Do you guys got idea how to fix it?
Hi, I am trying to install Nextcloud onto my macbook pro (which already currently has Docker and Portainer installed). I am not sure you know this answer as you might not have had experience with this on a mac, I asked because you mentioned 'any server' in the beginning so I was not sure if it is for Linux servers only. My apologies, I am new to Docker (etc). I successfully got Docker, Portainer, and Nextcloud installed, but the MySQL instances that I tried (via Docker and MySQL Community Server download) could not connect to my Nextcloud because macOS doesn't supply the docker0 interface where I can obtain the IP & port for the Nextcloud connection. Any advice is greatly appreciated. Would I need Docker-compose to go your route (in this tutorial) if it works with macOS?
OOPS, bin vlt fündig: bei /var/lib/docker/volumes/nextcloud_nextcloud-data finde ich db- und data-files für NC und NPM. Ist das alles, was zum BU nötig ist?
Can somebody help me with this error: Error while trying to create admin user: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [1045] Access denied for user 'nextcloud'@'172.20.0.3' (using password: YES) ?
@@christianlempa If you use the domain from the local network, will traffic go outside the network and back in, or is something smart enough to route it inside the network only?