Resource icon

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

362
96
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...
 
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.
 
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.
 
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: 21
I've found a post in Reddit with a similar problem
To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.

I have tried the suggested changes to the file as discriped but with no luck.

Maybe you have more luck with it:unsure:
 
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: 94
  • second_row.png
    second_row.png
    266.3 KB · Views: 91
  • Screen Shot 2019-11-16 at 17.43.47.png
    Screen Shot 2019-11-16 at 17.43.47.png
    81.7 KB · Views: 81
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: 36
  • Link redis.png
    Link redis.png
    29.2 KB · Views: 39
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?
 
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.
 

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.

Similar threads

SynoMan submitted a new resource: NextCloud on Synology NAS using Docker compose (with Portainer) - The...
Replies
0
Views
2,221
So this means that I can copy to its directory from another DiskStation directory and share (using File...
Replies
3
Views
1,449
I'll delete everything I can containers/images/etc, and start fresh over the weekend. While I really like...
Replies
48
Views
6,623
I use it with the Reeder app and wanted to have filtered feeds there. I'll play around with it a bit more.
Replies
61
Views
9,951
Hello, i just tried to follow these steps above, but all I get is a psql: could not connect to server...
Replies
43
Views
11,344
I discovered if you use fireflyiii/core:latest everything works just fine
Replies
35
Views
16,836
hmmm, looks like something bad happened :( Of course I am inserting a correct admin token (newly...
Replies
421
Views
93,511

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Back
Top