Nextcloud setup with docker and portainer

Hi

i hope you can support me with my setup:-)

I have an RPI4 8GB with LibreELEC/Kodi. I used it mainly to watch IPTV etc. But now i would also like to run other services cause the RPI4 has power enough for other stuff.

I know that LibreELEC for KODI is a minimum operating system to run only Kodi. BUT i know that i can run with docker containers on that OS without problems. So i have installed docker and Portainer and also mariadb.

MariaDB:
docker create --name=mariadb --net=lsio -e PUID=65534 -e PGID=100 -e MYSQL_ROOT_PASSWORD=1111111111 -e TZ=Europe/Berlin -e MYSQL_DATABASE=nc -e MYSQL_USER=nextcloud -e MYSQL_PASSWORD=1111111111 -p 3306:3306 -v /storage/.kodi/userdata/addon_data/docker.linuxserver.mariadb/config:/config --restart unless-stopped linuxserver/mariadb

Then i wanted to install nextcloud BUT cause KODI has port 8080 i have to change the port for nextcloud from 8080 to 8081 (i hope that is not false). So i run this command:
docker create --name=nextcloud --net=lsio -e PUID=65534 -e PGID=100 -e TZ=Europe/Berlin -p 8081:8081 -v /storage/.kodi/userdata/addon_data/docker.linuxserver.nextcloud/config:/config -v /storage/.kodi/userdata/docker.linuxserver.nextcloud/data:/data --restart unless-stopped linuxserver/nextcloud

I have tested mariadb by logging into it and checking if the “nc” database for nextcloud exists - yes it´s there. Then i tried to open Nextcloud via browser with port 8081 and it is not working -shit.

Here is the configuration which i see in portainer:
Image
linuxserver/nextcloud@sha256:34be4abb221846181f8d1ccd994a5a2f33a968f2894fea85a5a15a08f978616f
`Port configuration ` `0.0.0.0:8081 8081/tcp`
CMD
``
ENTRYPOINT
/init
ENV:
PUID 65534
PGID 100
TZ Europe/Berlin
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PS1 $(whoami)@$(hostname):$(pwd)\$
HOME /root
TERM xterm
NEXTCLOUD_PATH /config/www/nextcloud
Labels
build_version Linuxserver.io version:- 20.0.4-ls112 Build-date:- 2021-01-11T06:00:35-05:00
maintainer aptalca

Can someone pls help me ???

1 Like

Why don’t you use linuxserver.io Docker images via LibreElec plugins ? It’s super easy to manage :heart: (the plugins define systemd services to start/stop containers, everything is smooth)

There are some posts on the forum, mainly this one