教你在Docker上不到2分钟建立一个多模型数据库!
2017-06-09 00:00
861 查看
ArangoDB is an interesting young database, which compares three popular data models: documents, graphs, and key-value stores. Some other features like database-side scripting endpoints are very interesting too. Give it a try! Let’s kickstart the setup and deploy a ready ArangoDB setup on DigitalOcean with docker.
Mediums forecast of reading this article is 2 minutes. You can setup ArangoDB within this time too! In fact, you only have to click about 5 times and execute 3 commands.
“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.
.. and execute one single command (choose your custom password instead of ha2WF4qdHc):
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.
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.
Have fun! Find ArangoDB on Github.
Mediums forecast of reading this article is 2 minutes. You can setup ArangoDB within this time too! In fact, you only have to click about 5 times and execute 3 commands.
1. 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.
2. 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.
3. 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.
相关文章推荐
- 在Visio中建立数据库模型的步骤
- Rails3入门之十一 建立一个多模型的form
- 建立控制器模型,舍弃建立数据库表模型(laravel 5)
- [置顶] 【DRP】使用PowerBuilder建立数据库物理模型,并导入Oracle数据库
- powerDesiner16.5建立oracle数据库模型
- 使用PowerDesigner建立数据库模型
- 使用PowerDesigner建立数据库模型
- 使用PowerDesigner建立数据库模型
- 建立django博客应用及数据库模型
- 使用PowerDesigner建立数据库模型【转】
- 使用PowerDesigner建立数据库模型
- 使用PowerDesigner建立数据库模型
- 使用PowerDesigner建立数据库模型【转】
- 使用PowerDesigner建立数据库模型
- 使用PowerDesigner建立数据库模型
- 点餐网站学习(EF+MVC)-EF工具,自动创建模型并建立数据库映射关系
- 在 MySQL Workbench 中如何可视的建立 MySQL 物理数据模型,并使用它来创建一个 MySQL 数据库
- 数据库(2):配置数据的缓存建立方法,建立通用表模型
- 使用PowerDesigner建立数据库模型
- 数据库(1):配置数据的缓存建立方法,独立数据表模型