I use one swag (letsencrypt) certificate (Zertikate) for four separate services, from one docker-compose.
Nextcloud with Letsencrypt using OMV and docker-compose - Q&A
-
- OMV 5.x
- WastlJ
-
-
Hello, can i use with GUIDE without the Debian 10 backport stack?
ZitatI use one swag (letsencrypt) certificate (Zertikate) for four separate services, from one docker-compose.
Hello.can i get templates from your domain?
Did you use a free dynDNS service?
ZitatThen in docker you do the port mapping (forwarding) from 444 LAN to 443 in docker
and 81 LAN to 80 in docker
Hello macon, did you have a screenshot for me?
My sunday problem, i only get this error if i use the OpenMediaVault-Plugin-Developers/installScript:
Code
Alles anzeigenReading package lists... Done Building dependency tree Reading state information... Done All packages are up to date. W: Failed to fetch http://deb.debian.org/debian/dists/buster/InRelease Could not resolve 'deb.debian.org' W: Failed to fetch http://security.debian.org/debian-security/dists/buster/updates/InRelease Could not resolve 'secu rity.debian.org' W: Failed to fetch http://deb.debian.org/debian/dists/buster-updates/InRelease Could not resolve 'deb.debian.org' W: Failed to fetch https://dl.bintray.com/openmediavault-plugin-developers/usul/dists/buster/InRelease Could not res olve 'dl.bintray.com' W: Failed to fetch https://download.docker.com/linux/debian/dists/buster/InRelease Could not resolve 'download.docke r.com' W: Failed to fetch http://linux.teamviewer.com/deb/dists/stable/InRelease Could not resolve 'linux.teamviewer.com' W: Failed to fetch http://httpredir.debian.org/debian/dists/buster-backports/InRelease Could not resolve 'httpredir. debian.org' W: Failed to fetch http://packages.openmediavault.org/public/dists/usul/InRelease Could not resolve 'packages.openme diavault.org' W: Failed to fetch https://openmediavault.github.io/packages/dists/usul/InRelease Could not resolve 'openmediavault. github.io' W: Some index files failed to download. They have been ignored, or old ones used instead.
Installation GitHub, (ryecoaaron, votdev): https://github.com/OpenMediaVa…-Developers/installScript
docker-compose
Zitataadd the following to your resolve.conf file /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
-
Hi, I am new to omv and try to set nextcloud up. I have follow the guide on
[How-To] Nextcloud with Letsencrypt using OMV and docker-compose
I am using cloudflare to set A record point to omv and with cname nextcloud. I deploy nextcloud stack under portainer.
I have two problem and need help :
1)Nextcloud website error message : The page isn’t redirecting properly
2) Inside swag log - shall i download the OpenResty's versions?
nginx: [alert] detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html).
My docker-compose file is below :
Code
Alles anzeigenversion: "2" services: nextcloud: image: linuxserver/nextcloud container_name: nextcloud environment: - PUID=1000 #change PUID if needed - PGID=100 #change PGID if needed - TZ=FILTER NOT TO EXPOSE #change Time Zone if needed volumes: - /srv/dev-disk-by-uuid-036f00b0-3d5a-41cf-b6e9-c83e89b15d91/ABC/nextcloud/config:/config #/srv/dev-disk-by-label-disk1 needs to be adjusted - /srv/dev-disk-by-uuid-036f00b0-3d5a-41cf-b6e9-c83e89b15d91/ABC/nextcloud/data:/data #/srv/dev-disk-by-label-disk1 needs to be adjusted depends_on: - mariadb # ports: # uncomment this and the next line if you want to bypass the proxy # - 450:443 restart: unless-stopped mariadb: image: linuxserver/mariadb container_name: nextclouddb environment: - PUID=1000 #change PUID if needed - PGID=100 #change PGID if needed - MYSQL_ROOT_PASSWORD=password #change password - TZ=FILTER NOT TO EXPOSE #Change Time Zone if needed volumes: - /srv/dev-disk-by-uuid-036f00b0-3d5a-41cf-b6e9-c83e89b15d91/ABC/nextclouddb:/config #/srv/dev-disk-by-label-disk1 needs to be adjusted restart: unless-stopped swag: image: linuxserver/swag #swag is the replacement for letsencrypt (see link below) container_name: swag cap_add: - NET_ADMIN environment: - PUID=1000 #change PUID if needed - PGID=100 #change PGID if needed - TZ=FILTER NOT TO EXPOSE # change Time Zone if needed - URL=sunmarch.co.in #insert your domain name - yourdomain.url - SUBDOMAINS=www,nextcloud - VALIDATION=http - EMAIL=FILTER NOT TO EXPOSE # define email; required to renew certificate volumes: - /srv/dev-disk-by-uuid-036f00b0-3d5a-41cf-b6e9-c83e89b15d91/ABC/swag:/config #/srv/dev-disk-by-label-disk1 needs to be adjusted ports: - 444:443 - 81:80 restart: unless-stopped
I hope someone able to guide me through this step by step as i am new to this NAS System.
Thank you
-
- URL=sunmarch.co.in #insert your domain name - yourdomain.url
- SUBDOMAINS=www,nextcloudAre you sure
nextcloud.sunmarch.co.in is a valid URL?
You can ignore the LUAJit error.
-
openmedianer i can do that later today. I am away from the computer right now. I’m sorry but I use duckdns, so you will have to adjust accordingly.
-
Are you sure
nextcloud.sunmarch.co.in is a valid URL?
You can ignore the LUAJit error.
Hi macom , i have add cname nextcloud.sunmarch.co.in in cloudflare and point to a A record which is toward omv server IP. To track my omv server IP, i do setup a stack under portainer using API token and keep updates on IP if have changes. Sorry, yesterday i do turn off my omv server as i have run this server for 5 days non stop and try to resolve this issue. I hope you can help and appreciate for your guidance.
-
openmedianer here you go:
Code
Alles anzeigen--- version: "2" services: nextcloud: # Nextcloud server. image: ghcr.io/linuxserver/nextcloud container_name: nextcloud environment: - PUID=1000 - PGID=100 - TZ=America/Chicago volumes: - /srv/dev-disk-by-label-disk4/appdata/nextcloud:/config - /srv/dev-disk-by-label-disk4/nextcloud:/data depends_on: - mariadb # ports: # uncomment this and the next line if you want to bypass the proxy # - 450:443 restart: unless-stopped mariadb: # Needed for the Nextcloud database. image: ghcr.io/linuxserver/mariadb container_name: nextclouddb environment: - PUID=1000 - PGID=100 - MYSQL_ROOT_PASSWORD=xxxxxxxxx - TZ=America/Chicago volumes: - /srv/dev-disk-by-label-disk4/appdata/nextclouddb:/config restart: unless-stopped duckdns: # This section may not be needed. Info duplicated in swag section. image: ghcr.io/linuxserver/duckdns container_name: duckdns environment: - PUID=1000 - PGID=100 - TZ=America/Chicago - SUBDOMAINS=huey,dewey,louie,donald,daffy # these aren't my real subdomains. - TOKEN=xxxxxxxxxxx restart: unless-stopped swag: # for the reverse proxy. Letsencrypt has been depricated. image: linuxserver/swag container_name: swag cap_add: - NET_ADMIN environment: - ONLY_SUBDOMAINS=true - PUID=1000 - PGID=100 - TZ=America/Chicago - URL=duckdns.org - SUBDOMAINS=huey,dewey,louie,donald,daffy # These aren't my real subdomains. - VALIDATION=http - EMAIL=xxx@xxx.com volumes: - /srv/dev-disk-by-label-disk4/appdata/swag:/config ports: - 444:443 - 81:80 restart: unless-stopped ubooquity: # An ebook server. image: ghcr.io/linuxserver/ubooquity container_name: ubooquity environment: - PUID=1000 - PGID=100 - TZ=America/Chicago - MAXMEM=1024 volumes: - /srv/dev-disk-by-label-disk4/appdata/ubooquity:/config - /srv/e4038090-8952-45cf-ba1a-582c310dc7fd/ubooquity/books:/books - /srv/e4038090-8952-45cf-ba1a-582c310dc7fd/ubooquity/comics:/comics - /srv/e4038090-8952-45cf-ba1a-582c310dc7fd/ubooquity/files:/files ports: - 2202:2202 - 2203:2203 restart: unless-stopped navidrome: # A music server. image: deluan/navidrome:latest container_name: navidrome environment: - PUID=1000 - PGID=100 - TZ=America/Chicago volumes: - /srv/dev-disk-by-label-disk4/appdata/navidrome:/data - /srv/e4038090-8952-45cf-ba1a-582c310dc7fd/navidrome/music:/music:ro ports: - 4533:4533 restart: unless-stopped airsonic: # An audiobook (or music) server. image: ghcr.io/linuxserver/airsonic container_name: airsonic environment: - PUID=1000 - PGID=100 - TZ=America/Chicago volumes: - /srv/dev-disk-by-label-disk4/appdata/airsonic:/config - /srv/e4038090-8952-45cf-ba1a-582c310dc7fd/airsonic/music:/music - /srv/e4038090-8952-45cf-ba1a-582c310dc7fd/airsonic/podcasts:/podcasts - /srv/e4038090-8952-45cf-ba1a-582c310dc7fd/airsonic/playlists:/playlists - /srv/e4038090-8952-45cf-ba1a-582c310dc7fd/airsonic/audiobooks:/audiobooks ports: - 4040:4040 restart: unless-stopped
After you deploy you will have to set up a proxy for each of the services you have in the yml file, using the subdomains you registered in duckdns and in the yml. The various proxy files are found in appdata/swag/nginx/proxy-confs/ with a .sample appended to each file. Find the file corresponding to the different services you are deploying in the yml file. In each of those xxx.subdomain.conf.sample files there is a line where it reads server_name airsonic.*;. That needs to be changed to server_name huey.*; and so on for each service. Save each proxy file without the .sample.
Obviously other services can be swapped out for the ones I have used here. Look through the proxy files provided in the folder mentioned above to see what is possible. It's probably easier to stay within the linuxserver family of dockers. I was able to include Navidrome because there just happened to be a proxy file included in the samples. If you feel adventurous there is even a generic version of the proxy files available.
- macom 's [How-To] on Nextcloud, along with the accompanying Q &A, is a foundational must-read regarding the details of the correct implementation of this docker-compose.yml file. If you can deploy Nextcloud using this [How-To] you can deploy ANYTHING using docker-compose (or Stacks.) Thanks macom .
- I would also like to give a hat tip to TechnoDadLife for his two Nextcloud videos [1] & [2] that started me wondering (a long time ago) why one would list five subdomains claimed with duckdns, and then only use one when setting up Nextcloud. Finally, a couple of months ago I patched together the above yml file and amazingly ... it worked! Thanks TDL.
-
Hello, should the Guides [How-To] Nextcloud with Letsencrypt using OMV and docker-compose work with local IP?
To get success i have create a Duck_DNS Account. Thank*s Agricola, not Africola.
When did you have last ckeck your tutorial?
Did you see any problems if i use for learning VirtualBox?
-
Thanks for the HowTo! I have one question at the end. How do i use the "occ" command inside the container? do i have to use
or
abc is the owner of the files inside the container but i only get this error:
what am i doing wrong? do i have to add abc to the group "sudo"?
-
-
Did you see any problems if i use for learning VirtualBox?
Well, it has nothing to do with VirtualBox.
I would suggest that for testing purposes you stick as much as possible to the guide. Once you got that running move on and try to change things until you are where you want to be.
-
Hello macom, i can reach from the internet my Nextcloud.
Thank you.
I would now like to access my nextcloud from the internal network, without internet.
http://192.168.178.88/nextcloud
ZitatSoftware Failure. Press left mouse button to continue.
Die angeforderte Seite wurde nicht gefunden.
How can i solved this problem?
Why we doen't use the UUID for the HDD? --->
-
Hello macom, i didn't "docker-compose" with OMV 5 if use this script to install OMV 5:
https://github.com/OpenMediaVa…-Developers/installScript
I can solved this problem this:
Codeapt install docker-compose docker-compose --version docker-compose version 1.21.0, build unknown
Hello, i get every day another ip adress.
DuckDNS doesn't update the new ip adress i my case.
Did we need the follow container?
-
Let me come back to my question in #446.
In nextcloud now 20.0.7 I get the following warning in Settings->Overview:
ZitatMariaDB version "10.1.47-MariaDB-0ubuntu0.18.04.1" is used. Nextcloud 21 will no longer support this version and requires MariaDB 10.2 or higher.
My hardware (see signature) is an arm32 device.
Even the newest mariadb image https://github.com/linuxserver…/110.4.17mariabionic-ls10 ("Bump to 10.4 ...") doesn't suppress the warning message.
Why? "Inside" the nextclouddb (=mariadb) container we have 10.1.47:
Coderoot@7f6f464c863c:~# apt list --installed | grep maria WARNING: apt does not have a stable CLI interface. Use with caution in scripts. mariadb-client-10.1/now 1:10.1.47-0ubuntu0.18.04.1 armhf [installed,local] mariadb-client-core-10.1/now 1:10.1.47-0ubuntu0.18.04.1 armhf [installed,local] mariadb-common/now 1:10.1.47-0ubuntu0.18.04.1 all [installed,local] mariadb-server/now 1:10.1.47-0ubuntu0.18.04.1 all [installed,local] mariadb-server-10.1/now 1:10.1.47-0ubuntu0.18.04.1 armhf [installed,local] mariadb-server-core-10.1/now 1:10.1.47-0ubuntu0.18.04.1 armhf [installed,local]
What can I do?
Remark: I also started a corresponding thread in armbian forum:
https://forum.armbian.com/topi…iadb-docker-version-102ff
EDIT:
In https://discourse.linuxserver.io I found two posts which bring some light into the topic.
1. From Nov 2020: https://discourse.linuxserver.…adb-on-raspberry-pi3/2221
Mariadb dont push newer binaries for armhf
2. From Mar 2020: https://discourse.linuxserver.…db-on-arm-still-v10-1/944
arm one pulls from the ubuntu bionic repo: https://packages.ubuntu.com/bionic-updates/mariadb-server
either that will be updated, or we’ll update the baseimage to ubuntu focal after it is released
And the problem is: ubuntu focal doesn't support 32bit. So what to do with nextcloud 21?
-
Until the issue with the Linuxserver image is fixed you might want to use another MariaDB image.
This seems well maintained and supports armhf and runs MariaDB 10.4: https://hub.docker.com/r/webhippie/mariadb
This would mean that you perform a sql dump of your nextcloud database (activate nextcloud maintenance before exporting and also take a backup) and import it into the new MariaDB. Are you able to do that?
-
Thank you for this great guide, I always keep coming back to this one, as this gets me the furthest.
I am running on a raspberry pi 4, on the latest OMV5, afaik.
In swag logging I get to
CodeCleaning up challenges IMPORTANT NOTES: - Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/xxxx.duckdns.org/fullchain.pem Your key file has been saved at: /etc/letsencrypt/live/xxxx.duckdns.org/privkey.pem
nextcloud logging keeps producting this however:
Codenginx: [emerg] cannot load certificate "/config/keys/cert.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/config/keys/cert.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
How is that certificate generated by swag in /etc/letsencrypt/live/xxxx.duckdns.org/ supposed to make it to a folder nextcloud monitors (which is /config/keys/, right)?
I might not be making any sense, at all. I am a total newb to docker and omv.
-
You are experiencing a bug. This has nothing to do with mapping keys:
-
...
This would mean that you perform a sql dump of your nextcloud database (activate nextcloud maintenance before exporting and also take a backup) and import it into the new MariaDB. Are you able to do that?
A few details would be gratefully accepted.
-
hey,
maybe that will help you DB Backup & Restore
in the last post you will find the scripts - was designed for backups so it should work.
-
hey,
maybe that will help you DB Backup & Restore
in the last post you will find the scripts - was designed for backups so it should work.
Thank you. Tomorrow is the day ...
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!