Quantcast
Channel: TerraMaster Forum
Viewing all articles
Browse latest Browse all 4149

Others • Re: NextCloud AIO Docker image: No access.

$
0
0
Hi Wolfgang,
I have Nextcloud running but I had to waste many hours until it finally worked. Neither docker-compose nor Portainer worked so I ended up setting it up manually inside TOS Docker Manager. However, I had to use Portainer for pulling the correct images.
Important: I do not access my Nextcloud instance from outside my own network. Therefore I dont bother with Letsencrypt and reverse proxy and such.

Here is what I did:

1. Create Folders which will be your volumes.
I have two folders:
One for the MariaDB database and one for Nextcloud itself for storing all the user data:
/Volume1/cloud/db
/Volume1/cloud/nextcloud

2. Pull image for MariaDB
In Portainer pull image of MariaDB but make sure version is 10.6 (docker image pull mariadb:10.6).

3. Start Container for MariaDB
In TOS Docker Manager start MariaDB with the following options entered manually.
Make sure to adjust your path names and password:
name: mariadb
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
volumes:
- /Volume1/cloud/db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=YOURPASSWORD
- MYSQL_PASSWORD=YOURPASSWORD
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
network: bridge

4. Download image for Nextcloud.
I did not want to have the latest version (I think it was 27 at that time) so I pulled in Portainer nextcloud:26.0.3

5. Start Container for Nextcloud
In TOS Docker Manager start Nextcloud with the following options entered manually.
Make sure to adjust your path name and password. Here I use exact same password as for MariaDB.
name: nextcloud
ports:
- local port: 8585
- container port: 80
volumes:
- /Volume1/cloud/nextcloud:/var/www/html
environment:
- MYSQL_PASSWORD=YOURPASSWORD
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=mariadb
network: bridge

6. Initialize
Now you can enter in your browser address bar myipaddress:8585 (e.g. for me it is my NAS "192.168.178.25:8585").
Enter new admin name and password.
Everything else should already be prefilled. Make sure you select setup database "MySQL/MariaDB". If localhost is empty enter the MariaDB container name mariadb.

7. Create Users
Inside Nextcloud when logged in as admin you can now create all users and install apps.

Good Luck!

Statistics: Posted by topo01 — Yesterday, 23:46



Viewing all articles
Browse latest Browse all 4149

Trending Articles