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...
 
362
96
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.
 

Telos

Subscriber
2,844
899
NAS
DS418play, DS213j, DS3622+, DSM 7.2.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.
 
242
63
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: 19
362
96
NAS
DS418play
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. macOS
  2. Windows
Mobile operating system
  1. iOS
242
63
I've found a post in Reddit with a similar problem
I have tried the suggested changes to the file as discriped but with no luck.

Maybe you have more luck with it:unsure:
 
242
63
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: 87
  • second_row.png
    second_row.png
    266.3 KB · Views: 84
  • Screen Shot 2019-11-16 at 17.43.47.png
    Screen Shot 2019-11-16 at 17.43.47.png
    81.7 KB · Views: 74
242
63
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: 30
  • Link redis.png
    Link redis.png
    29.2 KB · Views: 33
57
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?
 
362
96
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.
 

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
1,251
Telos submitted a new resource: Seafile (self-hosted) on Docker - A powerful, open source, cross-platform...
Replies
0
Views
310
I'll delete everything I can containers/images/etc, and start fresh over the weekend. While I really like...
Replies
48
Views
3,954
From looking in a terminal session on the running FreshRSS container... [email protected]:/# more /etc/hosts...
Replies
58
Views
6,271
Hello, i just tried to follow these steps above, but all I get is a psql: could not connect to server...
Replies
43
Views
8,377
I discovered if you use fireflyiii/core:latest everything works just fine
Replies
35
Views
13,581

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Trending threads

Top