-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
54 lines (50 loc) · 1.41 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: "3"
services:
jaeger:
image: jaegertracing/all-in-one:latest
ports:
- "6831:6831/udp"
- "16686:16686"
grafana:
image: grafana/grafana:latest
ports:
- "3000:3000"
restart: on-failure
environment:
GF_AUTH_ANONYMOUS_ENABLED: "true"
GF_AUTH_ANONYMOUS_ORG_ROLE: "Admin"
GF_DEFAULT_APP_MODE: development
GF_LOG_LEVEL: debug
GF_LOG_FILTERS: plugins:debug
GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS: "true"
GF_PLUGINS_ENABLE_ALPHA: "true"
GF_SERVER_ROOT_URL: http://admin:admin@grafana:3000
JAEGER_AGENT_HOST: "jaeger"
RUST_LOG: grafana_plugin_sdk=debug,info
volumes:
- "./grafana/provisioning:/etc/grafana/provisioning"
- ".:/var/lib/grafana/plugins/grafana-sample-backend-plugin-rust"
frontend:
image: node:14
command:
- sh
- -c
- 'yarn && yarn start'
working_dir: /home/node/app
volumes:
- ".:/home/node/app"
backend:
build: .
volumes:
- "/usr/local/cargo"
- "/usr/src/backend/target"
- "./backend:/usr/src/backend"
- "./dist:/usr/src/dist"
command:
- cargo
- watch
- --why
- -x
- build
- -s
- rm -rf /usr/src/dist/gpx_sample-backend-plugin-rust_linux_amd64 && cp target/debug/grafana-sample-backend-plugin-rust /usr/src/dist/gpx_sample-backend-plugin-rust_linux_amd64 && nc -z grafana 10001