Nextcloud - the self-hosted productivity platform that keeps you in control

Docker Nextcloud - the self-hosted productivity platform that keeps you in control

Currently reading
Docker Nextcloud - the self-hosted productivity platform that keeps you in control

NAS
DS418play
Router
RT2600ac
Operating system
macOS, Windows
Mobile operating system
iOS
wwwampy submitted a new resource:

Nextcloud - the self-hosted productivity platform that keeps you in control - Tutorial for Nextcloud installation in Docker via UI


Nextcloud is the most deployed on-premises file share and collaboration platform. Access & collaborate across your devices. Your data remains under your control.

Official site:


This tutorial is mostly for newcomers and those that are not so familiar with the Docker. I'm not an expert, but I want to share my installation as a tutorial to help others. Feel free to comment in the...
Read more about this resource...
 
NAS
DS216+II : DS118 : DS120j : APC Back UPS ES 700 — Mac/iOS user
Thank you for sharing.
Are you using it? Is it as easy as it looks on their website?
 
NAS
DS418play
Router
RT2600ac
Operating system
macOS, Windows
Mobile operating system
iOS
I'm actually not using it, still have it installed and maybe I'll take a look at it. I just installed it to create this tutorial.

But yes, looks very easy to use, lots of options and apps inside.
 
NAS
DS418play, DS213j, DSM 7.0.1-14401
I was curious how calendar (CalDAV) and contacts (CardDAV) compare. I don't want the migration hassle unless it is worth it... that, plus the unknown capability (improvement???) of DSM 7.
 
Intrigued too but not inclined to migrate from my setup yet. But that’s the fun of using containers ... you can play and decide if it’s worth it
 
Hi,
Keep getting this error "The "X-Frame-Options" HTTP header is not set to "SAMEORIGIN". This is a potential security or privacy risk, as it is recommended to adjust this setting accordingly." (See attachment)

Any Idea how to fix this?
 

Attachments

NAS
DS418play
Router
RT2600ac
Operating system
macOS, Windows
Mobile operating system
iOS
NAS
DS418play
Router
RT2600ac
Operating system
macOS, Windows
Mobile operating system
iOS
Hm, yeah, sorry, I'm in the same boat here.
 
Hi,
I fix it!

This is how to solve the error:
Go to /volume1/docker/nextcloud/config/nginx/site-confs/default
open the default file with your favorite text-editor and at the following to file (see also Attachments)
Code:
add_header X-Frame-Options "SAMEORIGIN";
Make sure to added the line at two places in the file (this is important otherwise it wil not work!!)
Restart nextcloud container (not sure if this is necessary but cannot hurt)
After that you should get a green dot and no error anymore ;)
 

Attachments

NAS
DS418play
Router
RT2600ac
Operating system
macOS, Windows
Mobile operating system
iOS
Thanks, that fixes it!
 
If you like more performance for Nextcloud one can at Redis to the instance.

This is how I get it to work:

  • Download the Redis:latest image
  • Configure the Redis container

Code:
docker pull redis:latest
docker run -d \
--name redis \
--volume /volume1/docker/redis/data/:/data \
--env TZ='<YourTimeZone' \
-p 6379:6379 \
--restart always redis:latest
  • Stop the Nextcloud container (If you have it already running without Redis)
  • Alter the config file (e.g. /volume1/docker/nextcloud/config/www/nextcloud/config/config.php)
  • Add this code to the config file (see attachment)

Code:
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'redis',
    'port' => 6379,
  ),
  • Link the Nextcloud container to Redis container (Docker GUI>Tab Links) (see attachment)

That's it start the containers and check the data folder of Redis, if all goes well you should see a file called dump.rdb. This file will be filled with nextcloud data after a while.
 

Attachments

NAS
RS819
i wish thre would be a synology app not requiring dockr to install nextcloud... Since it is only requiring a db and php that should be enough?
 
i wish thre would be a synology app not requiring dockr to install nextcloud... Since it is only requiring a db and php that should be enough?
Are you offering? :cool:

I've not gone through the pros and cons of Nextcloud vs Synology's various packages. Someone want to do it?
 
NAS
DS418play
Router
RT2600ac
Operating system
macOS, Windows
Mobile operating system
iOS
If you like more performance for Nextcloud one can at Redis to the instance.

This is how I get it to work:

  • Download the Redis:latest image
  • Configure the Redis container

Code:
docker pull redis:latest
docker run -d \
--name redis \
--volume /volume1/docker/redis/data/:/data \
--env TZ='<YourTimeZone' \
-p 6379:6379 \
--restart always redis:latest
  • Stop the Nextcloud container (If you have it already running without Redis)
  • Alter the config file (e.g. /volume1/docker/nextcloud/config/www/nextcloud/config/config.php)
  • Add this code to the config file (see attachment)

Code:
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => 'redis',
    'port' => 6379,
  ),
  • Link the Nextcloud container to Redis container (Docker GUI>Tab Links) (see attachment)

That's it start the containers and check the data folder of Redis, if all goes well you should see a file called dump.rdb. This file will be filled with nextcloud data after a while.
Great, I'll add a link to this post in the tutorial.
 
NAS
DS418play
Router
RT2600ac
Operating system
macOS, Windows
Mobile operating system
iOS
I've not gone through the pros and cons of Nextcloud vs Synology's various packages. Someone want to do it?
Yes, I'm actually using Synology apps, which works great for me. NC does look ok, but not sure if I'll switch...
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Top