Docker installation:
mkdir docker && cd docker
wget https://library.ahadiani.ca/install_docker_nproxyman.sh
chmod +x install_docker_nproxyman.sh
./install_docker_nproxyman.sh
After that please go forward by using the wizard related to your OS and needed packages like Docker CE, Docker compose, Nginx reverse proxy, Portainer, and so on …
Let's get started as below:
mkdir -p docker/nextcloud
cd docker/nextcloud
nano docker-compose.yml
Now paste below script to that area:
version: "3.8"
volumes:
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer
services:
nextcloud:
image: nextcloud/all-in-one:latest
restart: unless-stopped
container_name: nextcloud-aio-mastercontainer
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- 8195:8080 # change the port on the left side if it's already in use on your host system.
environment:
- APACHE_PORT=11000 # change this port number if 11000 is already in use on your host system.
- APACHE_DISABLE_REWRITE_IP=1
- NEXTCLOUD_TRUSTED_DOMAINS=< nextcloud.your-super-domain.com > < proxy host IP > # Your domain name + proxy host IP
- TRUSTED_PROXIES=< proxy host IP > # proxy host IP
Save that and exit.
Now you should run the container:
docker-compose up -d && docker-compose lof -f
Press ctrl + c to exit out of the logs page.
Now, you can go to the setup webpage by using the https://server IP:8195.
*** Copy that long master password and save it in a safe place, now press the button “open Nextcloud AIO login”.
Now on the new page paste that password and click login. Now you will see a new webpage, pause everything here and go to NPM manager console and create a proxy host into that by using the right DNS A record and the server IP, and port 11000.
Now go back to that page that you paused before and put that domain name and click submit.
Now, check the optional add-ons and hit save changes.
After that input, your right time zone.
NOW YOU CAN START CONTAINERS, and for sure it takes some time, so be PATIENT.
After a while by clicking on reload button you should see something like the below screenshot:
Note: also, you can change that super-long password on this page as well if you want to know which password, I am saying please go to the above line which is started by ***.
Now, for moving forward, first, copy the password which I highlighted in the below image, and hit open your Nextcloud button:
Login with the admin as a user and that password you have already in your clipboard.
Don't forget that you should download the related client apps as below:
For more info go here.
Also, for the TALK module, you may need below apps as well:
Gooooooooooooooooooooooood Luck.