如何在Docker上不到2分钟建立一个多模型数据库?

ArangoDB是一个有趣的新型多模型数据库,它融合了三种流行的数据模型:文档,图形和键值存储。一些其他功能,如数据库端脚本终端也非常有趣的。试一试!让我们启动设置,并在Docker上的DigitalOcean上部署一个现成的ArangoDB设置。

图片描述

阅读这篇文章的媒介预测是2分钟。您也可以在这段时间内设置ArangoDB!其实你只需要点击大约5次,然后执行3个命令。

Create DigitalOcean Droplet with Docker

Register/Log-in to DigitalOcean and create a new droplet with docker preinstalled:

“Create Droplet” -> “One-click Apps” -> “Docker 17.03.0-ce on 16.04“
The versions might differ.

Choose your preferred settings (size, region etc.) and add an SSH key to access the droplet afterwards.

Install & start ArangoDB

Just connect to your droplet (use your droplets IP and the SSH key)..

ssh -i /path/to/your/ssh-key root@12.345.67.89

.. and execute one single command (choose your custom password instead of ha2WF4qdHc):

docker run -e ARANGO_ROOT_PASSWORD=ha2WF4qdHc -p 8529:8529 -d arangodb/arangodb

The command does certain things

  • It downloads the newest ArangoDB docker image (because it is not yet
    available on the droplet).

  • It installs the ArangeDB docker image,
    creates a root user with the given password and starts the container.

  • It makes sure that the ArangoDB port 8529 is accessible from outside
    the docker container.

Open it for the world

Now, wo just have to open the port of the droplet to access the database from the “open” internet:

ufw allow 8529

Ready to create great apps with ArangoDB!

The database endpoint is ready for queries!

You can create databases, users, permissions and many more from the built-in ArangoDB interface. Just use the IP of your droplet and the default ArangoDB-Port 8529.

http://12.345.67.89:8529/

Have fun!
Find ArangoDB on Github

原文链接: https://medium.com/ninjaconce...

身在德国的开源数据库女纸~

35 声望
58 粉丝
0 条评论
推荐阅读
汤森路透 Thomson Reuters--使用多模型数据库ArangoDB 打造快速安全的简单视图分析
摘要: 汤森路透为专业人士提供所需的智能,技术和人力资源,以便找到值得信赖的答案。它们使财务风险,法律,税务会计以及媒体市场的专业人员能够做出最重要的决定,所有这些都由世界上最值得信赖的新闻机构提供...

GermanWifi阅读 2.3k

正则表达式实例
收集在业务中经常使用的正则表达式实例,方便以后进行查找,减少工作量。常用正则表达式实例1. 校验基本日期格式 {代码...} {代码...} 2. 校验密码强度密码的强度必须是包含大小写字母和数字的组合,不能使用特殊...

寒青56阅读 8.5k评论 11

JavaScript有用的代码片段和trick
平时工作过程中可以用到的实用代码集棉。判断对象否为空 {代码...} 浮点数取整 {代码...} 注意:前三种方法只适用于32个位整数,对于负数的处理上和Math.floor是不同的。 {代码...} 生成6位数字验证码 {代码...} ...

jenemy48阅读 7k评论 12

从零搭建 Node.js 企业级 Web 服务器(十五):总结与展望
总结截止到本章 “从零搭建 Node.js 企业级 Web 服务器” 主题共计 16 章内容就更新完毕了,回顾第零章曾写道:搭建一个 Node.js 企业级 Web 服务器并非难事,只是必须做好几个关键事项这几件必须做好的关键事项就...

乌柏木75阅读 7.1k评论 16

再也不学AJAX了!(二)使用AJAX ① XMLHttpRequest
「再也不学 AJAX 了」是一个以 AJAX 为主题的系列文章,希望读者通过阅读本系列文章,能够对 AJAX 技术有更加深入的认识和理解,从此能够再也不用专门学习 AJAX。本篇文章为该系列的第二篇,最近更新于 2023 年 1...

libinfs42阅读 6.8k评论 12

封面图
从零搭建 Node.js 企业级 Web 服务器(一):接口与分层
分层规范从本章起,正式进入企业级 Web 服务器核心内容。通常,一块完整的业务逻辑是由视图层、控制层、服务层、模型层共同定义与实现的,如下图:从上至下,抽象层次逐渐加深。从下至上,业务细节逐渐清晰。视图...

乌柏木45阅读 8.5k评论 6

从零搭建 Node.js 企业级 Web 服务器(二):校验
校验就是对输入条件的约束,避免无效的输入引起异常。Web 系统的用户输入主要为编辑与提交各类表单,一方面校验要做在编辑表单字段与提交的时候,另一方面接收表单的接口也要做足校验行为,通过前后端共同控制输...

乌柏木35阅读 6.7k评论 10

身在德国的开源数据库女纸~

35 声望
58 粉丝
宣传栏