How to Install Nextcloud Talk Using Docker on Alibaba Cloud

By Arslan Ud Din Shafiq, Alibaba Cloud Tech Share Author. Tech Share is Alibaba Cloud’s incentive program to encourage the sharing of technical knowledge and best practices within the cloud community.

Nextcloud is a suite of client-server software for creating and using file hosting services, similar to Dropbox. Nextcloud Talk is an application by Nextcloud, which allows you to organize meetings with colleagues, customers and partners with a single click.

In this tutorial, we will be installing and setting up Nextcloud Talk on an Alibaba Cloud Elastic Compute Service (ECS) with Ubuntu 16.04 installed.

Prerequisites

  • You must have Alibaba Cloud Elastic Compute Service (ECS) activated and verified your valid payment method. If you are a new user, you can get $300 — $1200 worth in Alibaba Cloud credits for your new account. If you don’t know about how to setup your ECS instance, you can refer to this tutorial or quick-start guide. Your ECS instance must have at least 1GB RAM and 1 Core processor.
  • A domain name registered from Alibaba Cloud. If you have already registered a domain from Alibaba Cloud or any other host, you can update its domain nameserver records.
  • Domain name must be pointed to your Alibaba Cloud ECS’s IP address
  • Access to VNC console in your Alibaba Cloud or SSH client installed in your PC
  • Set up your server’s hostname and create user with root privileges.

Setting Up Your Server

Before proceeding with installation of any kind of package, use the following command to update your Ubuntu system. To execute this command, remember to login from non-root user with sudo privileges.

Software-properties-common package is required to get the supported files for installation of Docker CE. To install software-properties-common, execute the command.

Apt-transport-https is required for installation of Docker CE. To install apt-transport-https, execute the command.

Ca-certificates is required for installation of Docker CE. To install ca-certificates, execute the command.

Curl is required for installation of Docker CE. To install curl execute the command.

Install Docker CE

To install Docker community edition, follow the steps below.

Step 1:

Add GPG key for Docker by executing command below.

Step 2:

Execute the following command to verify the fingerprint of GPG key.

Step 3:

Add the Docker repository by executing the command below.

Step 4:

Update your system by executing command below to load added repository.

Step 5:

Execute the following command to install Docker.

Step 6:

Add your username to docker group by executing command below.

Step 7:

Close your current shell session and start a new session. Otherwise, you won’t be able to run docker and you may see permission errors.

Step 8:

Execute the following command to check either docker run correctly or not.

Install NextCloud

To install NextCloud and Talk, follow the steps below.

Step 1:

Run the following command to download and install NextCloud on Docker.

Install Docker compose:

To keep your data consistent through upgrades and automatically handling of all containers on restart, you may use Docker compose. It is easy to launch configuration in separate database container and persistent volume. To download and install Docker compose, follow the steps below.

Step 1:

Execute the following command to download and install latest version of docker compose.

Step 2:

Now set the permissions for file using the command below.

Step 3:

Get list of started containers using the following command.

Image for post
Image for post

Stop container using port 8080. To do so, get container id, replace it with 8baab990c424 below and execute the command.

Step 4:

Option 1 — Without SSL

If you wish to install SSL certificate, skip the steps below and go to Option 2 — With SSL, and then continue from Step 5 of this section.

Create docker-compose.yaml file, paste the following text for configurations and save the file. Before pasting text, remember to set database name, password and user.

Execute the following command to launch Docker Compose configuration.

Option 2 — With SSL

Set Up Firewalls and Ports

If you have activated firewalls, you will have to define a rule in Alibaba Cloud security group for your cloud server to add exception for port 80/tcp and 443/tcp. You can enable these ports while creating ECS instance, but in case if you have forgotten to unblock these ports, you can follow the procedure in this guide: https://www.alibabacloud.com/help/doc-detail/25471.htm

Set Up Reverse Proxy

Get list of started containers using the following command.

Stop container using port 8080. To do so, get container id, replace it with 8baab990c424 below and execute the command.

In this step, you will setup reverse proxy to access NextCloud Talk so that you can access it via domain name without using any port in the end of address. To do so, you will need to update docker-compose.yml file with the following text.

Now add the following text in the opened file and save it.

Now create a directory named proxy.

Navigate to created directory proxy.

Now create a file named Dockerfile, paste the following text in the opened file and save it.

Now create uploadsize.conf, paste the following text in opened file and save it.

Now navigate to home directory.

Now launch Docker compose configuration.

Step 5:

Now open your browser and navigate to http://your_domain.tld:8080 or http://ecs_ip_address:8080 If you see any error while loading page, go to firewall settings section and enable port 8080. After accessing link, you will see the following screen.

Image for post
Image for post

Step 6:

Now create admin account by filling the form below.

Image for post
Image for post

Step 7:

Click Storage & database dropdown and fill the database information. Use host value : db

Image for post
Image for post

After filling data, click Finish Setup. Now you will be redirected to NextCloud dashboard.

Image for post
Image for post

Install Talk

Talk offers you to make text and video chat. It helps you to make calls. To do so, follow the steps below.

Step 1:

Navigate to profile picture icon on top right corner, a dropdown menu will open. Click +Apps as shown below.

Image for post
Image for post

Step 2:

Now navigate to Social & communication section. You will see the list of apps. Select Talk from the opened list as shown below. Click Download and enable option and wait for installation.

Image for post
Image for post

After successful installation, you will see a new icon on top menu bar, click it.

Image for post
Image for post

You will see the following screen. You will see the list of users of left side if added. You can make calls and chat with them.

Reference:https://www.alibabacloud.com/blog/how-to-install-nextcloud-talk-using-docker-on-alibaba-cloud_594746?spm=a2c41.12842905.0.0

Written by

Follow me to keep abreast with the latest technology news, industry insights, and developer trends.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store