安装配置
docker-compose.yml
version: "3.2" services: # 用于协调集群中各个机器的负载 zero: image: dgraph/dgraph:latest volumes: - type: volume source: dgraph target: /dgraph volume: nocopy: true ports: - 5080:5080 - 6080:6080 restart: on-failure command: dgraph zero --my=zero:5080 # 用于存储数据 server: image: dgraph/dgraph:latest volumes: - type: volume source: dgraph target: /dgraph volume: nocopy: true ports: - 8080:8080 - 9080:9080 restart: on-failure # whitelist白名单,当前是开放所有 command: dgraph alpha --security whitelist=0.0.0.0/0 --my=server:7080 --zero=zero:5080 # 用于操作的数据库的ui界面,可在浏览器访问8000端口获得界面 ratel: image: dgraph/ratel:latest volumes: - type: volume source: dgraph target: /dgraph volume: nocopy: true ports: - 8000:8000 command: dgraph-ratel volumes: dgraph:
执行 docker compose up -d 启动 Dgraph 服务
浏览器访问 http://ip:8000 进入 Dgraph Ratel Dashboard
Dgraph server URL 填写 http://ip:8080 点击 Connect 连接 server
未完待续。。。
标签:Dgraph,dgraph,--,8000,配置,volume,zero,安装 From: https://www.cnblogs.com/nihaorz/p/17832212.html