1、安装docker不说了,可以直接看我文章一键安装docker
https://blog.csdn.net/qq_41060647/article/details/131568289?spm=1001.2014.3001.5502
2、一个docker-compose文件解决。
如果不使用mysql,可以将docker-compose.yml文件中的mysql配置修改为其他数据库例如pg等,或者默认是rockdb。
version: "3"
services:hugegraph-server:image: hugegraph/hugegraph:1.0.0restart: alwayscontainer_name: bdtx_graphports:- 18080:8080hugegraph-hubble:image: hugegraph/hubblecontainer_name: bdtx_graph_hubblerestart: alwaysprivileged: trueports:- 18088:8088mysql:restart: alwaysimage: mysql:5.7container_name: bdtx_mysqlvolumes:- ./mysql_data:/mydirenvironment:- "MYSQL_ROOT_PASSWORD=123456"- "MYSQL_DATABASE=hugegraph_db"- "TZ=Asia/Shanghai"ports:- 3308:3306
3、执行docker-compose up -d启动,会自动拉取hugegraph-server及hugegraph-hubble。
4、验证