I couldn’t find any up-to-date tutorials for the installation and configuration of NextCloud on ElectricEel. Can anyone point me to one such tutorial please?
[The official guide is woefully confusing and incomplete unfortunately.]
I couldn’t find any up-to-date tutorials for the installation and configuration of NextCloud on ElectricEel. Can anyone point me to one such tutorial please?
[The official guide is woefully confusing and incomplete unfortunately.]
The tutorial linked above walks you through the Nextcloud app which I guess is what you’re looking for, but you can also consider setting it up as a virtual machine. I happened to write a post about it yesterday, it is a general guide, not a tutorial but may be useful.
Thanks! Will that work on ElectricEel though?
it should if you use the iX-app and follow the steps to add the storage & env variables, but i personally use my own compose file to deploy nextcloud and did not have any problems in the 6 months since switched to it. Here’s my compose-file
version: '3.3'
services:
nextcloud-db:
image: linuxserver/mariadb:latest
container_name: nextcloud-db
restart: unless-stopped
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- /mnt/yourpool/yourdataset/config:/config #set path for mariadb config
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=set it yourself #set SQL root password
- MYSQL_PASSWORD=set it yourself #Set SQL user password
- MYSQL_DATABASE=nextcloud #Databasename Name
- MYSQL_USER=nextcloud #SQL Username
- MYSQL_INITDB_SKIP_TZINFO=1
- MARIADB_AUTO_UPGRADE=1
ports:
- 3306:3306
nextcloud-redis:
image: redis:alpine
container_name: nextcloud-redis
hostname: nextcloud-redis
networks:
- default
restart: unless-stopped
command: redis-server --requirepass nextcloud # set Redis password
nextcloud-app:
image: linuxserver/nextcloud:latest
container_name: nextcloud-app
restart: unless-stopped
depends_on:
- nextcloud-db
- nextcloud-redis
environment:
- PUID=1000
- PGID=1000
- TRUSTED_PROXIES="**"
- OVERWRITEPROTOCOL=https
- OVERWRITECLIURL=yourdomain.com
- OVERWRITEHOST= yourdomain.com
- REDIS_HOST= nextcloud-redis
- REDIS_HOST_PASSWORD= nextcloud # enter Redis Password here
ports:
- '11080:80'
volumes:
- /mnt/poolname/datasetname/config:/config #hostpath for nextcloud config storage
- /mnt/nextcloud:/data #hostpath for nextcloud data storage
labels:
- "traefik.enable=true" #optional for traefik
- "traefik.docker.network=proxy" #optional for traefik
- "traefik.http.routers.nextcloud.rule=Host(`yourdomainname.com`)" #optional for traefik
- "traefik.http.routers.nextcloud.entrypoints=https" #optional for traefik
- "traefik.http.routers.nextcloud.tls=true" #optional for traefik
- "traefik.http.services.nextcloud.loadbalancer.server.port=80" #optional for traefik
- "traefik.http.routers.nextcloud.tls.certresolver=cloudflare" #optional for traefik
networks:
- proxy #optional for traefik
- default
networks: #optional for traefik
proxy: #optional for traefik
external: true #optional for traefik
My NextCloud is currently not working. What am I doing wrong?
Here are the datasets that I currently have:
nextcloud
:html
:postgres_data
:data
:hard to tell without an actual error mesage…
“doesn’t work” can mean a lot.
Does the app start but you cant connect to it?
Does the app start but can’t connect to the Database?
The app does not start and throws an error?
Have you taken a look at the apps log for any information on why it doesn’t start?
Apologies, I should have specified that the app starts, no problem, but I cannot access the Web UI.
How are you trying to access the webui? via ip:port or via domain?
ip:port
Which port did you assign to nextcloud? By default the webui should be at port 80, but since that is already used by the truenas webui you should use port mapping to map a different external port to internal port 80
Since i’m not using the iX app, but rather the compose file i posted up above i don’t know if you have to set the overwrite cli url env variable during the setup… which could be the problem…
Looks like I made some progress. Feel free to add your suggestions to the questions raised therein. And many thanks for paying attention to my NextCloud saga!
Thanks so much for the compose file! Could you post your nextcloud config.php as well? As far as I understand, I somehow have to change the config file to use the database from the compose file, right?
<?php
$CONFIG = array (
'datadirectory' => '/data',
'instanceid' => 'assword',
'passwordsalt' => 'password',
'secret' => 'password',
'trusted_proxies' => # list of cloudflare ip-spaces, can be deleted if not needed
array (
0 => '172.64.0.0/13',
1 => '173.245.48.0/20',
2 => '103.21.244.0/22',
3 => '103.22.200.0/22',
4 => '103.31.4.0/22',
5 => '141.101.64.0/18',
6 => '108.162.192.0/18',
7 => '190.93.240.0/20',
8 => '188.114.96.0/20',
9 => '197.234.240.0/22',
10 => '198.41.128.0/17',
11 => '162.158.0.0/15',
12 => '104.16.0.0/13',
13 => '104.24.0.0/14',
14 => '131.0.72.0/22',
),
'trusted_domains' =>
array (
0 => 'yourtruenas ip:11080', # insert your truenas ip
1 => 'cloud.my-domain.com', # insert your domain name
),
'dbtype' => 'mysql',
'version' => '29.0.2.2',
'overwrite.cli.url' => 'https://cloud.my-domain.com', # insert your domain name
'overwriteprotocol' => 'https',
'dbname' => 'nextcloud',
'dbhost' => 'DB IP:3306', #insert your dbip
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => 'yourdbpassword', # insert your db password
'installed' => true,
'memcache.local' => '\\OC\\Memcache\\Redis',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'filelocking.enabled' => true,
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'yourtruenasip', # insert your truenasip
'port' => 6380,
'timeout' => 0.0,
'password' => 'nextcloud',
),
'upgrade.disable-web' => true,
'mail_from_address' => 'mail account name', #change to your mail providers smtp settings!
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'mailprovider.com',
'mail_smtpauth' => 1,
'mail_smtphost' => 'smtp.server.de',
'mail_smtpport' => '587',
'mail_smtpname' => 'mailname@mailservice.com',
'mail_smtppassword' => 'mailaccount password',
'maintanance_window_start' => 1,
);