Read the article to know how to use the Appwrite instance on the Vultr Server. At Bobcares, with our Vultr Managed Service, we can handle your issues.
Overview
An Introduction to Appwrite
Appwrite is an end-to-end backend server that can be hosted on one’s own and is freely available as a set of Docker containers. It employs the Docker methodology, making it simple to install and use on any operating system (OS) that is capable of launching a Docker CLI. We can also use Appwrite on a local desktop computer or a cloud provider.
Because Appwrite is platform-agnostic, it can run on different cloud providers as well as on-premises servers. It can be integrated into a variety of front-end frameworks. Also, its emphasis on security, performance, and user-friendliness makes it a desirable option for developers who want to build applications more quickly without sacrificing essential features.
New Vultr Server Setup
1. We will be able to access the Vultr dashboard once the account has been successfully created. So, go to the Products section of the Vultr dashboard, then select the Instances tab and click on Deploy Server.
2. We will be presented with a new page containing configuration options for the server we wish to deploy after selecting Deploy Server. The configs are the following:
i. Server: Here, we’re considering a Cloud Compute server. We can select a different server depending on what we want to build with the Appwrite instance. Cloud Compute is mainly suitable for low-traffic applications. Depending on the server we select, the setup may change. Setups are unique to a specific kind of server.
Large databases, transcoding, CI/CD, production websites, and other applications are appropriate uses for Optimised Cloud Compute. Apps with the strictest security or performance requirements are suited for the Bare Metal Servers.
The CPU and storage Technology configuration for the Cloud Compute is provided in this article.
ii. CPU & Storage Technology: Here, we opt for Regular Performance.
iii. Server Location: When choosing a Server Location, there are a few things to take into account. A web server’s physical address is its location. It is the location of the website’s data storage. The intended viewers will be able to access the website more quickly the closer the web server is to them. Choosing the best server location for the website is very important. Then, select an image for the server.
iv. Server Image: Choose the Marketplace Apps tab from within the Server Image configuration option. After that, a list of images appears. Choose Docker because Appwrite makes use of it. We will be presented with two Linux distribution OS options to install the Docker image after choosing Docker. Pick whatever we want. For this tutorial, “Ubuntu 20.04 x64” is used.
v. Server size: We have to choose a Server size such that Appwrite can run on it without encountering any issues. Appwrite’s installation documentation states that a minimum of one CPU core and two gigabytes of RAM are needed to run the program. The Vultr Server size used in this post is quite similar to Appwrite’s minimum. We can then choose to activate additional features for the servers, such as automatic data backups.
vi. SSH Key: In order to use a secured shell (SSH) to remotely access the server from any computer, we must also have an SSH key. Although this tutorial uses SSH, we can also access the server using a web console that Vultr provides. In order to create an SSH key, run the following steps:
– Initially, open the terminal and type the following code to create an SSH key:
– Now, a prompt to name and save the key will appear.
– The next step is to create and validate a passphrase for the key.
– Then, SSH will automatically create two files with the names id_rsa and id_rsa.pub.
– Use the following code in order to view as well as copy the SSH key:
– Then, click Add New in the SSH keys section after copying the SSH key. Next, enter the copied key in the text field and give the SSH key a name.
– Now, we must name the server. Enter the Server Hostname and the Server Label.
3. Once we have made all of the above setups, now, click Deploy Now to view the servers’ quantity and cost summary.
4. We will have a Docker image server running Ubuntu 20.04 x64 OS a few minutes after selecting Deploy Now.
Deployment of an Appwrite Instance on Vultr
On the Vultr server, we can now launch an Appwrite instance.
1. Firstly, click the newly created server on the Products page.
2. Also, we can view the server’s usage and make additional configuration and setting changes on the appwrite_instance page. Additionally, we can use the web console in the upper right corner to access the server.
3. Next, we’ll use the SSH key we created to gain remote access to the server.
4. Open the terminal on the computer, then type the following code to access it remotely:
The above command logs in to the server using the server IP address and the username root over SSH. A few prompts to confirm the connection will then appear. The initial prompt will ask us to confirm the host’s legitimacy (the IP Address).
5. So, give a yes response. Submitting the host (server) password will be the next step.
6. We can copy the root password from the server page.
7. We can now launch the Appwrite Docker installer CLI tool in order to set up the Appwrite instance on the Vultr server after entering the password.
8. Use these commands to start an Appwrite instance:
9. With the command above, the Appwrite image is downloaded from Docker Hub. With the help of an interactive console that accepts input for the Appwrite, the command also initiates the Appwrite installation process.
10. After that, we will install Appwrite by following the instructions.
Instruction 1: Select the HTTP port on the server (default: 80). Press “enter” to add the default port if port 80 on the server is available. If not, pick a different port.
Instruction 2: Select the HTTPS port (443) that the server is using. Press “enter” to add the default port if port 443 on the server is available. Otherwise, select an alternate port.
Instruction 3: 'your-secret-key'
is the default secret API key. Make sure to safely backup the secret key, regardless of the one we select.
Instruction 4: Put in the Appwrite hostname (‘localhost/IP Address’ is the default). In this instance, enter the domain name, such as appwritetestinstance.com. Press “enter” to use the server IP address if it isn’t already.
Instruction 5: To serve as a CNAME for the custom domains, enter the hostname for the DNS A record. We can enter the server IP address using the same input that we used for the Appwrite hostname by default.
The Appwrite installer generates a unique docker-compose.yml file for the Appwrite installation once it has received all of these inputs. The Docker containers that comprise Appwrite are now being run and configured thanks to the created docker-compose.yml file. Finally, the output “Appwrite installed successfully” will appear after a while.
We’ve now successfully installed an Appwrite on Vultr. So, open a browser and go to the IP address of the server to view the Appwrite instance. The Appwrite sign-up page should then appear. An IP address can be mapped to a domain or subdomain.
[Looking for a solution to another query? We’re available 24/7.]
Conclusion
There are various advantages to running an Appwrite instance on a Vultr server. However, keep in mind that when selecting a hosting company and server configuration for the Appwrite instance on Vultr, we should also take the unique application requirements, financial limitations, and user base’s geographic distribution into account.
PREVENT YOUR SERVER FROM CRASHING!
Never again lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.
var google_conversion_label = "owonCMyG5nEQ0aD71QM";
0 Comments