-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
59 lines (55 loc) · 1.52 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
version: "3"
services:
grafana:
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_PLUGINS_ENABLE_ALPHA: "true"
GF_SERVER_ROOT_URL: http://admin:admin@grafana:3000
RUST_LOG: grafana_plugin_sdk=debug,grafana_materialize_datasource=debug,info
volumes:
- "./provisioning:/etc/grafana/provisioning"
- ".:/var/lib/grafana/plugins/bsull-materialize-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
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_grafana-materialize-datasource_linux_arm64 && cp target/debug/grafana-materialize-datasource /usr/src/dist/gpx_grafana-materialize-datasource_linux_arm64 && nc -z grafana 10001
materialized:
image: materialize/materialized
ports:
- 6876:6875
restart: on-failure
environment:
MZ_DATA_DIR: /mzdata
volumes:
- "/mzdata"