Skip to content

Latest commit

 

History

History

full-example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Dgraph Example

使用

1. 本机安装dgraph

docker run --rm -it -p 8080:8080 -p 9080:9080 -p 8000:8000 -v ~/dgraph:/dgraph dgraph/standalone:v20.03.0
  1. 浏览器通过 http://localhost:8000/?latest 访问
  2. 应用程序通过 9080 访问
arc:
  dgraph:
    urls: localhost:9080

2. 本机安装zipkin(可选)

docker run -d -p 9411:9411 openzipkin/zipkin-slim:2.21
  1. 浏览器通过 http://localhost:9411 访问
spring:
  zipkin:
    enabled: true
    base-url: http://localhost:9411
  sleuth:
    exampler:
      probability: 1

3. 启动

通过 FullExampleApplication 启动后在浏览器访问