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。
xml
version: "3"
services:
hugegraph-server:
image: hugegraph/hugegraph:1.0.0
restart: always
container_name: bdtx_graph
ports:
- 18080:8080
hugegraph-hubble:
image: hugegraph/hubble
container_name: bdtx_graph_hubble
restart: always
privileged: true
ports:
- 18088:8088
mysql:
restart: always
image: mysql:5.7
container_name: bdtx_mysql
volumes:
- ./mysql_data:/mydir
environment:
- "MYSQL_ROOT_PASSWORD=123456"
- "MYSQL_DATABASE=hugegraph_db"
- "TZ=Asia/Shanghai"
ports:
- 3308:3306
3、执行docker-compose up -d启动,会自动拉取hugegraph-server及hugegraph-hubble。
4、验证