So i'm pretty new to docker, i've installed a repo for nextcloud but how on earth do you set it up?
docker nextcloud?
-
- OMV 3.x
- lozzareeves
-
-
I've read something here that claims you go to localhost/nextcloud
so my omv ip is 192.168.1.97:8080, i've then added /nextcloud but I then get a 404 error?
-
did you end up finding a solution?? im not having much sucess installing too!
-
-
same here, wanted to add it to my nginx reverse proxy setup in a subdirectory like https://my.domain.tld/nextcloud but always getting a 'TOO_MANY_REDIRECTS' Error.
-
In order to run Nextcloud you need a database and Docker installed.
Assume you have both components, do the following:Installation of Nextcloud via Docker:
1. SSH to your machine (I dont't like the Web GUI)
2. Do the following things:Bashsudo docker volume create nextcloud-data sudo docker run --name nextcloud -d -v nextcloud-data:/var/www/html -p 8080:80
3. Now Docker begins to run Nextcloud as deamon (-d) with the volume for persistent data named nextcloud-data(-v) and listens on port 8080 (which is redirected to the containers port 80).
4. Access http://IP-OF-YOUR-OMV:8080
5. Install Nextcloud
5.1 Please set up a MariaDB/MySQL database and not use the included one. It's too slow.
6. Your files are now stored (persistent, in case of container update or crash or whatever) in: /var/lib/docker/openmediavault/volumes/nextcloud-dataSetup the NGINX redirection:
1. SSH to your machine again
2. Do the following:
3. Fill in the following:Code
Alles anzeigenserver { listen 80; server_name nextcloud.YOURDOMAIN.org; root /var/www/nextcloud; index index.html; # Raise file upload size client_max_body_size 512m; # Limit download size proxy_max_temp_file_size 4096m; # Proxy for nextcloud docker location / { # Headers are already set via https://github.com/nextcloud/server under lib/private/legacy/response.php#L242 (addSecurityHeaders()) # We only need to set headers that aren't already set via nextcloud's addSecurityHeaders()-function add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"; add_header Referrer-Policy "same-origin"; # Secure Cookie / Allow cookies only over https # https://en.wikipedia.org/wiki/Secure_cookies # https://maximilian-boehm.com/hp2134/NGINX-as-Proxy-Rewrite-Set-Cookie-to-Secure-and-HttpOnly.htm proxy_cookie_path / "/; secure; HttpOnly"; # And don't forget to include our proxy parameters #include /etc/nginx/proxy_params; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; # Connect to local port proxy_pass http://127.0.0.1:8080; } }
4. Hit CTRL+X and save with 'y'
5. ln -s /etc/nginx/sites-enabled/nextcloud /etc/nginx/sites-available/nextcloud
5. sudo service nginx restart
6. Access your nextcloud via http://nextcloud.YOURDOMAIN.org
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!