Need help to install Nextcloud with Docker and Portainer

    • OMV 5.x (beta)
    • Need help to install Nextcloud with Docker and Portainer

      Hello, after my OMV 4 installation was lost due to hard drive crashes, I took the opportunity to upgrade the hardware and install OMV 5. This went smoothly and quickly and the configuration (drives, users, shares, dlna) went smoothly.
      Now I have discovered that Docker works with a portainer or cockpit. Is that correct?
      Cockpit makes a mistake while trying to install.
      Portainer can be started properly.


      Now I just need a tutorial to cleanly install Nextcloud in this new environment. Unfortunately I find only OMV 4 (Docker) instructions. Unfortunately, no instructions for OMV 5.


      Can someone please give me a hint for a guide or take something here by the hand?


      Docker is running. Portainer is running.
      I only need Nextcloud for the local network. A release on the Internet is not planned.


      Thank you very much.

      Source Code

      1. System: Host: omvnas.fritz.box Kernel: 5.3.0-0.bpo.2-amd64 x86_64 bits: 64 Console: tty 0
      2. Distro: Debian GNU/Linux 10 (buster)
      3. Machine: Type: Desktop Mobo: Gigabyte model: B85M-HD3 v: x.x serial: N/A BIOS: American Megatrends v: FD date: 03/28/2014
      4. CPU: Topology: Quad Core model: Intel Core i5-4440 bits: 64 type: MCP L2 cache: 6144 KiB Speed: 799 MHz min/max: 800/3300 MHz Core speeds (MHz): 1: 798 2: 798 3: 798 4: 798
      5. Graphics: Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics driver: i915 v: kernel
      6. Audio: Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio driver: snd_hda_intel Device-2: Intel 8 Series/C220 Series High Definition Audio driver: snd_hda_intel Sound Server: ALSA v: k5.3.0-0.bpo.2-amd64
      7. Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 IF: enp2s0 state: up speed: 1000 Mbps duplex: full mac: <filter> IF-ID-1: docker0 state: up speed: N/A duplex: N/A mac: <filter> IF-ID-2: vethf25d8d9 state: up speed: 10000 Mbps duplex: full mac: <filter>
      8. Drives: Local Storage: total: 11.03 TiB used: 1.52 TiB (13.8%)
      9. ID-1: /dev/sda vendor: Intenso model: SSD Sata III size: 119.24 GiB
      10. ID-2: /dev/sdb vendor: Toshiba model: DT01ACA300 size: 2.73 TiB
      11. ID-3: /dev/sdc vendor: Toshiba model: DT01ACA300 size: 2.73 TiB
      12. ID-4: /dev/sdd vendor: Toshiba model: DT01ACA300 size: 2.73 TiB
      13. ID-5: /dev/sde vendor: Toshiba model: DT01ACA200 size: 1.82 TiB
      14. ID-6: /dev/sdf vendor: Toshiba model: DT01ACA100 size: 931.51 GiB
      15. Partition: ID-1: / size: 105.17 GiB used: 2.72 GiB (2.6%) fs: ext4 dev: /dev/sda1 ID-2: swap-1 size: 11.88 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda5
      Display All
    • Morlan wrote:

      Yes. You can also enter the docker-compose.yml as a stack in portainer.
      There is a field Web editor . I think there should paste the source-code from forum.openmediavault.org/index…g-OMV-and-docker-compose/ .
      I would like to use Nextcloud in my local network without internet connection. Can I delete the part with Letsencrypt before I take over the code? I think also there is no portforwarding needed in my case.
      Which volumes are right for nextcloud- and mariadb-services? Should the volumes are the same to /home/dockeruser/nextcloud or can i set volume of my choice?

      Thanks for support.
    • Tuxus wrote:

      There is a field Web editor . I think there should paste the source-code from forum.openmediavault.org/index…g-OMV-and-docker-compose/ .
      Yes.

      Tuxus wrote:

      I would like to use Nextcloud in my local network without internet connection. Can I delete the part with Letsencrypt before I take over the code?
      Yes. Take the example below:

      Source Code: docker-compose.yml

      1. version: "2"
      2. services:
      3. nextcloud:
      4. image: linuxserver/nextcloud
      5. container_name: nextcloud
      6. environment:
      7. - PUID=1000 #change PUID if needed
      8. - PGID=100 #change PGID if needed
      9. - TZ=Europe/Berlin #change Time Zone if needed
      10. volumes:
      11. - /srv/dev-disk-by-label-disk1/appdata/nextcloud/config:/config #/srv/dev-disk-by-label-disk1 needs to be adjusted
      12. - /srv/dev-disk-by-label-disk1/appdata/nextcloud/data:/data #/srv/dev-disk-by-label-disk1 needs to be adjusted
      13. depends_on:
      14. - mariadb
      15. ports: # uncomment this and the next line if you want to bypass the proxy
      16. - 450:443
      17. restart: unless-stopped
      18. mariadb:
      19. image: linuxserver/mariadb
      20. container_name: nextclouddb
      21. environment:
      22. - PUID=1000 #change PUID if needed
      23. - PGID=100 #change PGID if needed
      24. - MYSQL_ROOT_PASSWORD=mariadbpassword #change password
      25. - TZ=Europe/Berlin #Change Time Zone if needed
      26. volumes:
      27. - /srv/dev-disk-by-label-disk1/appdata/nextclouddb:/config #/srv/dev-disk-by-label-disk1 needs to be adjusted
      28. restart: unless-stopped
      Display All

      Tuxus wrote:

      I think also there is no portforwarding needed in my case.
      If you mean from your router then you are correct.

      Tuxus wrote:

      Which volumes are right for nextcloud- and mariadb-services? Should the volumes are the same to /home/dockeruser/nextcloud or can i set volume of my choice?
      You can set the volumes of your choice. If your OMV is running from a SD-Card dont your SD card for neither config nor data directories.

      _____________________________________________________________________________________________

      After deployment of the docker with Portainer you can find the Nextcloud-GUI under https://yourhostip:450 (trust the untrusted SSL-Certificate). Then skip directly to the section:

      macom wrote:

      on the welcome screen of nextcloud we need to configure the database

      click on "Storage&Database"

      select MySQL/MariaDB


      Database user --> "root"

      Database password --> password which has been specified in the docker-compose file with MYSQL_ROOT_PASSWORD

      Database name --> "nextcloud"

      localhost host --> "nextclouddb"
      then click "finish setup"
    • I try'd it with:

      Source Code

      1. version: "2"
      2. services:
      3. nextcloud:
      4. image: linuxserver/nextcloud
      5. container_name: nextcloud
      6. environment:
      7. - PUID=1001 #PUID dockeruser
      8. - PGID=100 #change PGID if needed
      9. - TZ=Europe/Berlin #change Time Zone if needed
      10. volumes:
      11. - /srv/dev-disk-by-label-netzwerkdaten/appdata/nextcloud/config:/config #/srv/dev-disk-by-label-disk1 needs to be adjusted
      12. - /srv/dev-disk-by-label-netzwerkdaten/appdata/nextcloud/data:/data #/srv/dev-disk-by-label-disk1 needs to be adjusted
      13. depends_on:
      14. - mariadb
      15. ports: # uncomment this and the next line if you want to bypass the proxy
      16. - 450:443
      17. restart: unless-stopped
      18. mariadb:
      19. image: linuxserver/mariadb
      20. container_name: nextclouddb
      21. environment:
      22. - PUID=1001 #PUID of dockeruser
      23. - PGID=100 #change PGID if needed
      24. - MYSQL_ROOT_PASSWORD=myownpassword #change password
      25. - TZ=Europe/Berlin #Change Time Zone if needed
      26. volumes:
      27. - /srv/dev-disk-by-label-netzwerkdaten/appdata/nextclouddb:/config #/srv/dev-disk-by-label-disk1 needs to be adjusted
      28. restart: unless-stopped
      Display All
      and i run into:

      Deployment error Error response from daemon: Get https://registry-1.docker.io/v2/:dial tcp:lookup registry-1.docker.io on [::1]:53: read udp [::1]:38163->[::1]:53: read: connection refused

    • I try'd it with:

      Source Code

      1. version: "2"
      2. services:
      3. nextcloud:
      4. image: linuxserver/nextcloud
      5. container_name: nextcloud
      6. environment:
      7. - PUID=1001 #PUID dockeruser
      8. - PGID=100 #change PGID if needed
      9. - TZ=Europe/Berlin #change Time Zone if needed
      10. volumes:
      11. - /srv/dev-disk-by-label-netzwerkdaten/appdata/nextcloud/config:/config #/srv/dev-disk-by-label-disk1 needs to be adjusted
      12. - /srv/dev-disk-by-label-netzwerkdaten/appdata/nextcloud/data:/data #/srv/dev-disk-by-label-disk1 needs to be adjusted
      13. depends_on:
      14. - mariadb
      15. ports: # uncomment this and the next line if you want to bypass the proxy
      16. - 450:443
      17. restart: unless-stopped
      18. mariadb:
      19. image: linuxserver/mariadb
      20. container_name: nextclouddb
      21. environment:
      22. - PUID=1001 #PUID of dockeruser
      23. - PGID=100 #change PGID if needed
      24. - MYSQL_ROOT_PASSWORD=myownpassword #change password
      25. - TZ=Europe/Berlin #Change Time Zone if needed
      26. volumes:
      27. - /srv/dev-disk-by-label-netzwerkdaten/appdata/nextclouddb:/config #/srv/dev-disk-by-label-disk1 needs to be adjusted
      28. restart: unless-stopped
      Display All

      and i run into:

      Source Code

      1. Deployment errorError response from daemon:Get https://registry-1.docker.io/v2/:dial tcp:lookupregistry-1.docker.io on [::1]:53:read udp [::1]:38163->[::1]:53:read: connection refused


    • I do not have IPV6 enabled in OMV, I have no IPV6 connection configured with my ISP, and the http-proxy is disabled in OMV. I never see see messages like you are seeing.

      Run the ip address command and verify that there are no IPV6 addresses configured, including link locals.
      --
      Google is your friend and Bob's your uncle!

      RAID - Its ability to disappoint is inversely proportional to the user's understanding of it.

      ASRock Rack C2550D4I C0 Stepping - 16GB ECC - Silverstone DS380
    • Source Code

      1. ip address show
      2. 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
      3. link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
      4. inet 127.0.0.1/8 scope host lo
      5. valid_lft forever preferred_lft forever
      6. inet6 ::1/128 scope host
      7. valid_lft forever preferred_lft forever
      8. 2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
      9. link/ether 74:d4:35:ea:40:42 brd ff:ff:ff:ff:ff:ff
      10. inet 192.168.178.xx/24 brd 192.168.178.255 scope global dynamic enp2s0
      11. valid_lft 856894sec preferred_lft 856894sec
      Display All
    • Okay. Now only the error would have to be discovered. I just noticed that at:

      Source Code

      1. sudo apt update && sudo apt dist-upgrade

      in OMV the output is:

      Source Code

      1. Get: 1 file: / var / cache / openmediavault / archives InRelease
      2. Ign: 1 file: / var / cache / openmediavault / archives InRelease
      3. Get: 2 file: / var / cache / openmediavault / archives Release
      4. Ign: 2 file: / var / cache / openmediavault / archives Release
      5. Get: 3 file: / var / cache / openmediavault / archives Packages
      6. Ign: 3 file: / var / cache / openmediavault / archives packages
      7. Error: 4 http://packages.openmediavault.org/public usul InRelease
      8. Packages.openmediavault.org could not be resolved.
      9. Error: 5 https://openmediavault.github.io/packages usul InRelease
      10. "Openmediavault.github.io" could not be resolved.
      11. Get: 6 file: / var / cache / openmediavault / archives Translation-de_DE
      12. Ign: 6 file: / var / cache / openmediavault / archives Translation_en_US
      13. Error: 7 http://linux.teamviewer.com/deb stable InRelease
      14. Linux.teamviewer.com could not be resolved.
      15. Miss: 8 http://httpredir.debian.org/debian buster-backports InRelease
      16. "Httpredir.debian.org" could not be resolved.
      17. Get: 9 file: / var / cache / openmediavault / archives Translation-de
      18. Ign: 9 file: / var / cache / openmediavault / archives Translation de
      19. Error: 10 https://dl.bintray.com/openmediavault-plugin-developers/usul buster InRelease
      20. Dl.bintray.com could not be resolved.
      21. Error: 11 https://download.docker.com/linux/debian buster InRelease
      22. "Download.docker.com" could not be resolved.
      23. Error: 12 https://dl.bintray.com/openmediavault-plugin-developers/usul-extras buster InRelease
      24. Dl.bintray.com could not be resolved.
      25. Get: 13 file: / var / cache / openmediavault / archives Translation
      26. Ign: 13 file: / var / cache / openmediavault / archives Translation
      27. Ign: 3 file: / var / cache / openmediavault / archives packages
      28. Get: 6 file: / var / cache / openmediavault / archives Translation-de_DE
      29. Ign: 6 file: / var / cache / openmediavault / archives Translation_en_US
      30. Get: 9 file: / var / cache / openmediavault / archives Translation-de
      31. Ign: 9 file: / var / cache / openmediavault / archives Translation de
      32. Wrong: 14 http://deb.debian.org/debian buster InRelease
      33. "Deb.debian.org" could not be resolved.
      34. Miss: 15 http://security.debian.org/debian-security buster / updates InRelease
      35. "Security.debian.org" could not be resolved.
      36. Miss: 16 http://deb.debian.org/debian buster-updates InRelease
      37. "Deb.debian.org" could not be resolved.
      38. Get: 13 file: / var / cache / openmediavault / archives Translation
      39. Ign: 13 file: / var / cache / openmediavault / archives Translation
      40. Get: 3 file: / var / cache / openmediavault / archives Packages
      41. Ign: 3 file: / var / cache / openmediavault / archives packages
      42. Get: 6 file: / var / cache / openmediavault / archives Translation-de_DE
      43. Ign: 6 file: / var / cache / openmediavault / archives Translation_en_US
      44. Get: 9 file: / var / cache / openmediavault / archives Translation-de
      45. Ign: 9 file: / var / cache / openmediavault / archives Translation de
      46. Get: 13 file: / var / cache / openmediavault / archives Translation
      47. Ign: 13 file: / var / cache / openmediavault / archives Translation
      48. Get: 3 file: / var / cache / openmediavault / archives Packages
      49. Ign: 3 file: / var / cache / openmediavault / archives packages
      50. Get: 6 file: / var / cache / openmediavault / archives Translation-de_DE
      51. Ign: 6 file: / var / cache / openmediavault / archives Translation_en_US
      52. Get: 9 file: / var / cache / openmediavault / archives Translation-de
      53. Ign: 9 file: / var / cache / openmediavault / archives Translation de
      54. Get: 13 file: / var / cache / openmediavault / archives Translation
      55. Ign: 13 file: / var / cache / openmediavault / archives Translation
      56. Get: 3 file: / var / cache / openmediavault / archives Packages
      57. Ign: 3 file: / var / cache / openmediavault / archives packages
      58. Get: 6 file: / var / cache / openmediavault / archives Translation-de_DE
      59. Ign: 6 file: / var / cache / openmediavault / archives Translation_en_US
      60. Get: 9 file: / var / cache / openmediavault / archives Translation-de
      61. Ign: 9 file: / var / cache / openmediavault / archives Translation de
      62. Get: 13 file: / var / cache / openmediavault / archives Translation
      63. Ign: 13 file: / var / cache / openmediavault / archives Translation
      64. Get: 3 file: / var / cache / openmediavault / archives Packages
      65. Ign: 3 file: / var / cache / openmediavault / archives packages
      66. Get: 6 file: / var / cache / openmediavault / archives Translation-de_DE
      67. Ign: 6 file: / var / cache / openmediavault / archives Translation_en_US
      68. Get: 9 file: / var / cache / openmediavault / archives Translation-de
      69. Ign: 9 file: / var / cache / openmediavault / archives Translation de
      70. Get: 13 file: / var / cache / openmediavault / archives Translation
      71. Ign: 13 file: / var / cache / openmediavault / archives Translation
      72. Get: 3 file: / var / cache / openmediavault / archives Packages
      73. Get: 6 file: / var / cache / openmediavault / archives Translation-de_DE
      74. Ign: 6 file: / var / cache / openmediavault / archives Translation_en_US
      75. Get: 9 file: / var / cache / openmediavault / archives Translation-de
      76. Ign: 9 file: / var / cache / openmediavault / archives Translation de
      77. Get: 13 file: / var / cache / openmediavault / archives Translation
      78. Ign: 13 file: / var / cache / openmediavault / archives Translation
      79. Package lists are read ... Done
      80. Dependency tree is set up.
      81. Status information is read .... Done
      82. All packages are up to date.
      83. W: Failed to get http://deb.debian.org/debian/dists/buster/InRelease "deb.debian.org" could not be resolved.
      84. W: Failed to get http://security.debian.org/debian-security/dists/buster/updates/InRelease "security.debian.org" could not be resolved.
      85. W: Failed to get http://deb.debian.org/debian/dists/buster-updates/InRelease "deb.debian.org" could not be resolved.
      86. W: Failed to get https://dl.bintray.com/openmediavault-plugin-developers/usul/dists/buster/InRelease dl.bintray.com could not be resolved.
      87. W: Failed to get https://download.docker.com/linux/debian/dists/buster/InRelease "download.docker.com" could not be resolved.
      88. W: Failed to get http://linux.teamviewer.com/deb/dists/stable/InRelease linux.teamviewer.com could not be resolved.
      89. W: Failure to get https://dl.bintray.com/openmediavault-plugin-developers/usul-extras/dists/buster/InRelease "dl.bintray.com" could not be resolved.
      90. W: Failed to get http://httpredir.debian.org/debian/dists/buster-backports/InRelease "httpredir.debian.org" could not be resolved.
      91. W: Failed to get http://packages.openmediavault.org/public/dists/usul/InRelease packages.openmediavault.org could not be resolved.
      92. W: Failed to get https://openmediavault.github.io/packages/dists/usul/InRelease openmediavault.github.io could not be resolved.
      93. W: Some index files could not be downloaded. They were ignored or old ones used in their place.
      94. Package lists are read ... Done
      95. Dependency tree is set up.
      96. Status information is read .... Done
      97. Package upgrade (upgrade) is calculated ... Done
      98. 0 updated, 0 reinstalled, 0 removed and 0 not updated.
      Display All
      It looks not very nice. I think there is a bug in the network settings...
    • I found the error. The network interface had changed from dhcp to docker. I don't know why. I fix it with omv-firstaid and the stack is working fine.
      Now i'm trying to open nextcloud http://192.168..........:450/ and it says
      400 Bad Request
      The plain HTTP request was sent to HTTPS portnginx/1.16.1
      Should i change the port 443 to 80 in the docker-compose.yml ?