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.


  • 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 https://forum.openmediavault.o…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.

  • 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.


    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:

    I think also there is no portforwarding needed in my case.

    If you mean from your router then you are correct.

    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:


  • I try'd it with:


    and i run into:


    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 try'd it with:



    and i run into:

    Code
    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


  • If you do not have an active IPV6 connection with your ISP you should disable IPV6 in OMV's Network configuration.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • 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!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • I see in portainer there is no user or group (except admin) created. I think i should create them. Or is it unnecessary when i deploy the stack as Administrators ? Is this right or should i deploy the stack Restricted to e set of user/teams ?

  • I don't play with those settings, I leave them as I found them.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • Okay. Maybe someone has an idea. In the meantime I will try to find out where the mistake could be ...
    I am not sure, but under OMV 4 you had to create Nextcloud in a container. Why now as a stack and not as a container under OMV 5?

  • Okay. Now only the error would have to be discovered. I just noticed that at:


    Code
    sudo apt update && sudo apt dist-upgrade


    in OMV the output is:


    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 ?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!