How to use Nextcloud file syncing with Meshnet
Learn how to deploy a Nextcloud Docker container for remote file syncing over Meshnet.
Last updated
Was this helpful?
Learn how to deploy a Nextcloud Docker container for remote file syncing over Meshnet.
Last updated
Was this helpful?
is a free and open-source online collaboration platform. It offers a wide range of tools and applications, such as file sharing and synchronization, calendar, tasks, and workflow integrations. Nextcloud is scalable from personal use to enterprise-level environments.
In standard configurations, to share your Nextcloud servers with remote devices, you must set up public domain names and SSL certificates or port forwarding, which can be both expensive and time-consuming.
With , you can forget about the difficult networking procedures. With only a couple of tweaks to the Nextcloud configuration, your Meshnet peer devices can access the server over encrypted, private network tunnels without exposing Nextcloud to the internet.
While Nextcloud can be set up using various methods, such as a or a , this article will show you how to run Nextcloud in a and access it over Meshnet.
To begin the configuration, you must have Docker installed on your device. Instructions on how to download and install Docker can be found on the Docker website:
After installing Docker on your system, you have the ability to deploy various applications and services as Docker containers. Now you can proceed with creating your Nextcloud container.
This method utilizes the Docker Desktop application to create a volume for the Nextcloud Docker container.
Open the Docker Desktop application.
From the menu on the left, select Volumes.
Click the Create button in the upper-right corner.
Name it nextcloud
and click Create.
The newly created volume will now be visible in the Volumes section.
This method shows you how to create a volume for your Nextcloud Docker container via the command line.
Open Command Prompt (on Windows) or Terminal (on Linux or macOS).
Run the following command to create a volume called nextcloud
:
If the creation was successful, you will see the name of your volume in the command line window.
Once the volume has been created, you can deploy the Nextcloud container itself.
Open Command Prompt.
Execute the following docker run
command:
With the container up and running, your Nextcloud service is listening on port 8080 (unless changed in the docker run
command). To complete the initial configuration, do the following:
Open your internet browser and visit this URL:
http://localhost:8080/
Finish the setup procedure by following the on-screen instructions.
Now, you have a fully customizable Nextcloud instance.
At this time, Nextcloud is only reachable from the host device. You need to adjust its configuration file to allow connections over Meshnet.
This method uses the built-in terminal in Docker Desktop to make changes.
Open Docker Desktop and click your Nextcloud container entry.
Switch to the Terminal tab.
Run the following command to update the repository list, install Nano, and open the config.php
file using Nano:
Locate the trusted_domains
array and append the following two lines, where <NordName>
is the host device’s Nord name and <MeshnetIP>
is the host device’s Meshnet IP address:
Example
Press Ctrl + X, Y, and Enter to save changes and exit.
Restart the Nextcloud container to apply the changes by clicking the restart button in Docker Desktop.
This method uses Nextcloud’s built-in command-line interface called occ
.
Open Command Prompt (on Windows) or Terminal (on Linux or macOS).
Add new trusted domains by executing the following two commands, where <NordName>
is the host device’s Nord name and <MeshnetIP>
is the host device’s Meshnet IP address:
Example
Check if the Nord name and Meshnet IP address have been assigned by running this command:
Restart the Nextcloud container to apply the changes.
After adding the Meshnet addresses to the trusted domains, your Nextcloud instance can be reached by Meshnet peer devices.
To use file syncing between different machines, you need to install the Nextcloud application on client devices.
Launch Nextcloud and click Log in.
In the server address field, enter http://
, followed by the Nord name of the host device, and :8080
.
Click Next and proceed with the login procedure.
Nextcloud settings can now be accessed from the system tray (on Windows) and the menu bar (on macOS or Linux).
Tip
To access the Nextcloud dashboard via a browser, do these steps:
Copy the Nord name of the host device from the NordVPN application.
Open your internet browser.
Paste the copied Nord name followed by :8080/
to the URL field and press Enter.
Example
secret.meerkat-everest.nord:8080/
Log in to your account.
Now you can freely navigate your Nextcloud from a remote device. You can view, upload, or remove files and use all other applications inside Nextcloud.
First, you need to create a specific (directory) where the container’s files will be stored.
Docker will from Docker Hub and create the container.
Docker will from Docker Hub and create the container.
Enter authentication details for your admin account, select the preferred database, and click Install.
If you're hosting Nextcloud on a Linux device, you must grant the for the devices accessing it. For more information, see .
Download and install the Nextcloud application from the .
Example
http://secret.meerkat-himalayas.nord:8080
Select your folder synchronization options and click Connect.
For ease of use, you may download the Nextcloud application from the on compatible Linux distributions.
Example
http://secret.meerkat-himalayas.nord:8080