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

350
92
NAS
DS418play
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. macOS
  2. Windows
Mobile operating system
  1. 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...
 
1,671
711
NAS
DS220+ : DS1019+ : 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?
 
350
92
NAS
DS418play
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. macOS
  2. Windows
Mobile operating system
  1. 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.
 
1,195
395
NAS
DS418play, DS213j, DS3621+, DSM 7.0.4-11091
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.
 

fredbert

Moderator
NAS Support
Subscriber
1,816
743
NAS
DS1520+, DS218+, DS215j
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
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
 
99
28
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

  • Screen Shot 2019-11-15 at 11.49.47.png
    Screen Shot 2019-11-15 at 11.49.47.png
    107 KB · Views: 15
350
92
NAS
DS418play
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. macOS
  2. Windows
Mobile operating system
  1. iOS
350
92
NAS
DS418play
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. macOS
  2. Windows
Mobile operating system
  1. iOS
Hm, yeah, sorry, I'm in the same boat here.
 
99
28
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

  • first_row.png
    first_row.png
    187.3 KB · Views: 71
  • second_row.png
    second_row.png
    266.3 KB · Views: 69
  • Screen Shot 2019-11-16 at 17.43.47.png
    Screen Shot 2019-11-16 at 17.43.47.png
    81.7 KB · Views: 59
350
92
NAS
DS418play
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. macOS
  2. Windows
Mobile operating system
  1. iOS
Thanks, that fixes it!
 
99
28
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

  • config file.png
    config file.png
    18.1 KB · Views: 16
  • Link redis.png
    Link redis.png
    29.2 KB · Views: 19

SynoMan

Administrator
Moderator
Founder
689
358
www.synoforum.com
NAS
418play
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
@Athena
You are currently in the discussion thread (red arrow below) of this resource. If you click on that link you'll be redirected to the overview page of the resource:


Screenshot 2019-11-19 at 22.04.47.png
 
56
18
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?
 

fredbert

Moderator
NAS Support
Subscriber
1,816
743
NAS
DS1520+, DS218+, DS215j
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
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?
 
350
92
NAS
DS418play
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. macOS
  2. Windows
Mobile operating system
  1. 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.
 
350
92
NAS
DS418play
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. macOS
  2. Windows
Mobile operating system
  1. 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