-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
60 lines (56 loc) · 1.61 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
55
56
57
58
59
60
version: "3"
services:
jaeger:
image: jaegertracing/all-in-one:latest
ports:
- "6831:6831/udp"
- "16686:16686"
grafana:
# image: sd2k/grafana:table-charts
image: grafana/grafana:9.0.7
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_PATHS_PLUGINS: /home/grafana/plugins
GF_PLUGINS_ENABLE_ALPHA: "true"
GF_SERVER_ROOT_URL: http://admin:admin@grafana:3000
JAEGER_AGENT_HOST: "jaeger"
RUST_LOG: grafana_tokio_console_datasource=debug,grafana_plugin_sdk=debug,info
volumes:
- "./provisioning:/etc/grafana/provisioning"
- ".:/home/grafana/plugins/bsull-console-datasource"
frontend:
image: node:14
command:
- sh
- -c
- 'yarn && yarn start'
working_dir: /home/node/app
volumes:
- ".:/home/node/app"
backend:
build:
context: backend
dockerfile: Dockerfile
environment:
RUSTFLAGS: --cfg tokio_unstable
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/grafana-tokio-console-datasource_linux_amd64 && cp target/debug/grafana-tokio-console-datasource /usr/src/dist/grafana-tokio-console-datasource_linux_amd64 && nc -z grafana 10001