knex666 Posted February 11, 2020 Share Posted February 11, 2020 (edited) Nextcloud based on the official docker hub image. Nextcloud with full Office integration. Based on: https://hub.docker.com/_/nextcloud/ Tag apache (latest) Please make shure you got the volume mounting correct. Please note you can mount any share to for example /mnt/Share and mount it in nextcloud with the "external storage" app. -- PREVIEW: -- DONATE: Please buy me a Pizza > https://www.buymeacoffee.com/maschhoff -- GUIDS: ---- FOLDER RIGHTS To get the right folder/file rights add this to Extra Parameter and Post Execution <ExtraParams>--user 99:100 --sysctl net.ipv4.ip_unprivileged_port_start=0</ExtraParams> <PostArgs>&& docker exec -u 0 NAME_OF_THIS_CONTAINER /bin/sh -c 'echo "umask 000" >> /etc/apache2/envvars'</PostArgs> ExtraParams: --user 99:100 --sysctl net.ipv4.ip_unprivileged_port_start=0 PostArgs: && docker exec -u 0 NAME_OF_THIS_CONTAINER /bin/sh -c 'echo "umask 000" >> /etc/apache2/envvars' ---- REVERSE PROXY For security reasons and to get https you should use a reverse proxy If you want to run it behind a reverse proxy make shure you got your proxy configuration right. As reverse proxy I recommend to use LetsEncrypt with nginx. You will find a lot of example configurations Then add ‘overwriteprotocol’ => ‘https’ to your nextcloud config. You will not be able to access it without your https reverse proxy anymore. ---- SPLIT DNS If you are running nextcloud in your home network it is a good choice to use a split DNS to get the connection directly to your nextcloud. In addition you will need it to get ONLYOFFICE accessable from inside and outside of your net. To get this done you need a reverse proxy configuration that and the right DNS entry: Example for dnsmasq or pihole DNS Server config address=/cloud.mydomain.com/192.168.100.100 address=/cloud.mydomain.com/1a01:308:3c1:f360::35e 192.168.100.100 should be your reverse proxy. You need a proxy configuration that points to "cloud.mydomain.com" passing it to your real nextcloud ip. ---- SECURITY CHECK You can schedule a task that will automaticly check the security level and gives you a push notification if there are any issues. It is based on https://scan.nextcloud.com/ https://github.com/maschhoff/nextcloud_securipy Any questions? Dont mind to ask Edited March 25, 2023 by knex666 Version 2 3 Quote Link to comment
knex666 Posted February 11, 2020 Author Share Posted February 11, 2020 1 hour ago, cmckill said: Please adjust the information to show your the author and not Nextcloud. Its very misleading and could lead to someone who is looking for the official Nextcloud docker image to pull the wrong image. IT is the official docker image thats why the author is nextcloud. Quote Link to comment
randomninjaatk Posted February 13, 2020 Share Posted February 13, 2020 (edited) So I got this working and I'm digging it because it was easier to setup then other nextcloud options. However, would it be possible for you to adjust the container so it can use cron for "background jobs"? Some extended apps like "News" requires it and it seems like it is usually recommended to use cron over the other 2 methods. Thanks in advance! Edited February 13, 2020 by randomninjaatk Quote Link to comment
knex666 Posted February 14, 2020 Author Share Posted February 14, 2020 9 hours ago, randomninjaatk said: So I got this working and I'm digging it because it was easier to setup then other nextcloud options. However, would it be possible for you to adjust the container so it can use cron for "background jobs"? Some extended apps like "News" requires it and it seems like it is usually recommended to use cron over the other 2 methods. Thanks in advance! Thanks. Since I will not change the image because I dont want any fork you have 2 options: 1. build your own with cron: https://github.com/nextcloud/docker/tree/master/.examples/dockerfiles/cron/apache 2. use the cron from unraid (Webinterface) and use docker exec. Cheers 1 Quote Link to comment
randomninjaatk Posted February 14, 2020 Share Posted February 14, 2020 4 hours ago, knex666 said: Thanks. Since I will not change the image because I dont want any fork you have 2 options: 1. build your own with cron: https://github.com/nextcloud/docker/tree/master/.examples/dockerfiles/cron/apache 2. use the cron from unraid (Webinterface) and use docker exec. Cheers Option 2 seems easiest, created the following script below and set it to run every 5 min using the "Users Scripts" plugin #!/bin/bash docker exec -u www-data Nextcloud php -f /var/www/html/cron.php exit 0 Thanks! 4 3 Quote Link to comment
zichichi Posted February 14, 2020 Share Posted February 14, 2020 Hello, I installed your docker but can't figure out how to set up onlyneoffice. Quote Link to comment
randomninjaatk Posted February 14, 2020 Share Posted February 14, 2020 3 hours ago, zichichi said: Hello, I installed your docker but can't figure out how to set up onlyneoffice. It auto installs on mine during the initial setup.... Did you skip the default app installation? Quote Link to comment
knex666 Posted February 14, 2020 Author Share Posted February 14, 2020 3 hours ago, zichichi said: Hello, I installed your docker but can't figure out how to set up onlyneoffice. Normally if you set it up from scratch it should automaticy install onlyoffice. If you click on + it should show you the option to create a document. If not please got to Apps and enable onlyoffice and the document server. If this will not work we´ll meet at discord. Cheers Quote Link to comment
zichichi Posted February 14, 2020 Share Posted February 14, 2020 thanks for the suggestions, i had installed nextcloud without the applications. Now works. 1 Quote Link to comment
ijuarez Posted February 14, 2020 Share Posted February 14, 2020 This is tempting but I already got a working instance. Quote Link to comment
karateo Posted February 16, 2020 Share Posted February 16, 2020 On 2/14/2020 at 11:26 PM, ijuarez said: This is tempting but I already got a working instance. I am in the same boat! The only reason is the resources (which i dont have a problem right now but less is better!) but with docker i dont believe there is much of a difference. Quote Link to comment
ijuarez Posted February 17, 2020 Share Posted February 17, 2020 16 hours ago, karateo said: I am in the same boat! The only reason is the resources (which i dont have a problem right now but less is better!) but with docker i dont believe there is much of a difference. I wanted onlyoffice this was easier than setting up the another docker and having it connect from my original instance. Quote Link to comment
kriddles Posted February 17, 2020 Share Posted February 17, 2020 I'm noobin... how do you assign it to another port? Quote Link to comment
knex666 Posted February 21, 2020 Author Share Posted February 21, 2020 Question: stuck on the first screen! All I have done is install the docker gone to the gui and filled out all the information but get an error Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory I guess this is because there is no database? but I was led to believe this docker is "all-in-one" so no need for letsencrypt/mariadb etc? but I guess that may be wrong? Any correction/guidance appreciated! Many Thanks Thats a very wirred error. Have you setup the folder mounting correct? Unless you havent changed the settings it will create a SQLite DB. Cheers Quote Link to comment
knex666 Posted February 21, 2020 Author Share Posted February 21, 2020 On 2/17/2020 at 7:24 PM, kriddles said: I'm noobin... how do you assign it to another port? just set your network to bride and add a port mapping from container port 8080 to your preferred port. It should look like "Host Port1" in the image but just with the different port. Nextcloud Port it 8080 Cheers Quote Link to comment
mbc0 Posted February 21, 2020 Share Posted February 21, 2020 1 hour ago, knex666 said: Question: stuck on the first screen! All I have done is install the docker gone to the gui and filled out all the information but get an error Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory I guess this is because there is no database? but I was led to believe this docker is "all-in-one" so no need for letsencrypt/mariadb etc? but I guess that may be wrong? Any correction/guidance appreciated! Many Thanks Thats a very wirred error. Have you setup the folder mounting correct? Unless you havent changed the settings it will create a SQLite DB. Cheers Hi, this was because I was choosing MySQL/MariaDB due to the warning of performance issues when SQL Lite was selected! I already have Nextcloud installed on another server (linuxserver version) using MariaDB & LetsEncrypt, I followed Spaceinvader One's excellent guide to do this, I suppose I need to follow the guide again using this docker? are there any differences in setup that you can think of that I need to be aware of? Quote Link to comment
knex666 Posted February 21, 2020 Author Share Posted February 21, 2020 Hi, this was because I was choosing MySQL/MariaDB due to the warning of performance issues when SQL Lite was selected! I already have Nextcloud installed on another server (linuxserver version) using MariaDB & LetsEncrypt, I followed Spaceinvader One's excellent guide to do this, I suppose I need to follow the guide again using this docker? are there any differences in setup that you can think of that I need to be aware of?Hi,I have no idea how it works If you setup it with MySQL. For me it works well with sqlite.You Do not habe to follow the guide sinice onlyoffice is fully included in this Image and will automatically setup.Cheers Gesendet von meinem Redmi Note 8 Pro mit Tapatalk Quote Link to comment
ijuarez Posted February 21, 2020 Share Posted February 21, 2020 Hi,I have no idea how it works If you setup it with MySQL. For me it works well with sqlite.You Do not habe to follow the guide sinice onlyoffice is fully included in this Image and will automatically setup.Cheers Gesendet von meinem Redmi Note 8 Pro mit TapatalkIf you have a large data from a user using sql lite could be very bad. I lost my first Nextcloud install because I choose to do the sql lite I was transferring so much data that the dB just quit and could not recover. Move to mariadb (MySQL essentially) haven’t had a problem. Just my input. Sent from my iPhone using Tapatalk 1 Quote Link to comment
knex666 Posted February 21, 2020 Author Share Posted February 21, 2020 1 minute ago, ijuarez said: If you have a large data from a user using sql lite could be very bad. I lost my first Nextcloud install because I choose to do the sql lite I was transferring so much data that the dB just quit and could not recover. Move to mariadb (MySQL essentially) haven’t had a problem. Just my input. Sent from my iPhone using Tapatalk Ok cool, I will give it a try. Thank you Quote Link to comment
kriddles Posted February 22, 2020 Share Posted February 22, 2020 My installation For the docker I created a new port container port 80 host port 446 since Apache is not ssl I followed instructions here https://blog.linuxserver.io/2017/05/10/installing-nextcloud-on-unraid-with-letsencrypt-reverse-proxy/ The only difference was since this apache instance that is created does not use ssl in my letsencrypt proxy_pass must be http:/ not https:/ That got me up and running however I had an issue with the ONLYOFFICE document editing service address When I tried to edit a document I saw an error that said "onlyOFFICE cannot be reached. Please contact admin" Go to your settings -> ONLYOFFICE (under Administration) Make sure the address is correct. Currently it's all up and running. Quote Link to comment
knex666 Posted February 22, 2020 Author Share Posted February 22, 2020 50 minutes ago, kriddles said: My installation For the docker I created a new port container port 80 host port 446 since Apache is not ssl I followed instructions here https://blog.linuxserver.io/2017/05/10/installing-nextcloud-on-unraid-with-letsencrypt-reverse-proxy/ The only difference was since this apache instance that is created does not use ssl in my letsencrypt proxy_pass must be http:/ not https:/ That got me up and running however I had an issue with the ONLYOFFICE document editing service address When I tried to edit a document I saw an error that said "onlyOFFICE cannot be reached. Please contact admin" Go to your settings -> ONLYOFFICE (under Administration) Make sure the address is correct. Currently it's all up and running. But everythings works now correct? I had the same bumpy way setting up my internal and external reverse proxy. As I've written in the first post here I solved it by adding ‘overwriteprotocol’ => ‘https’ to my nextcloud config. Quote Link to comment
kriddles Posted February 22, 2020 Share Posted February 22, 2020 Yes, it's all working now. 1 Quote Link to comment
jsdoc Posted February 23, 2020 Share Posted February 23, 2020 On 2/11/2020 at 12:33 PM, knex666 said: Any questions? Dont mind to ask Hello I'm confused with my install - thinking this should be installing an apache server/GUI for me to launch into - but with default docker config settings I'm not getting a GUI option. I Noticed that the Network type is defaulting to none and WebUI setting is blank. Am I missing steps in the config? I was thinking this was a version that wasn't going to need a Reverse Proxy Server, etc -- Thanks! Quote Link to comment
ijuarez Posted February 23, 2020 Share Posted February 23, 2020 39 minutes ago, jsdoc said: Hello I'm confused with my install - thinking this should be installing an apache server/GUI for me to launch into - but with default docker config settings I'm not getting a GUI option. I Noticed that the Network type is defaulting to none and WebUI setting is blank. Am I missing steps in the config? I was thinking this was a version that wasn't going to need a Reverse Proxy Server, etc -- Thanks! this is the same problem i am having, i fubar my LSIO docker so i tried this one, the template does not have the variable for the port so you have to add it. container is 80 and then whatever you want your host to be. My issue is that i am using the proxynet that was suggested a long time ago by spaceinvader. So this docket is sitting on my proxynet, with the variable of port 80 container and 446 for host. Cannot access it, keeps telling me connection refused from the unraid wegui. Looked at the documentation and it states that nextcloud runs on port 80 in the container so it should work. I have not being able to tackle the rest of the install because if this odd glitch. Quote Link to comment
ijuarez Posted February 24, 2020 Share Posted February 24, 2020 23 hours ago, ijuarez said: this is the same problem i am having, i fubar my LSIO docker so i tried this one, the template does not have the variable for the port so you have to add it. container is 80 and then whatever you want your host to be. My issue is that i am using the proxynet that was suggested a long time ago by spaceinvader. So this docket is sitting on my proxynet, with the variable of port 80 container and 446 for host. Cannot access it, keeps telling me connection refused from the unraid wegui. Looked at the documentation and it states that nextcloud runs on port 80 in the container so it should work. I have not being able to tackle the rest of the install because if this odd glitch. had to reinstall all over, the port 466 issue was a brower cache issue. Solved Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.