-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
52 lines (48 loc) · 1.46 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
services:
grafana:
user: root
container_name: 'timeplus-proton-datasource'
build:
context: ./.config
args:
grafana_image: ${GRAFANA_IMAGE:-grafana-enterprise}
grafana_version: ${GRAFANA_VERSION:-11.2.2}
development: ${DEVELOPMENT:-false}
ports:
- 3000:3000/tcp
- 2345:2345/tcp # delve
security_opt:
- 'apparmor:unconfined'
- 'seccomp:unconfined'
cap_add:
- SYS_PTRACE
volumes:
- ./dist:/var/lib/grafana/plugins/timeplus-proton-datasource
- ./provisioning:/etc/grafana/provisioning
- .:/root/timeplus-proton-datasource
environment:
NODE_ENV: development
GF_LOG_FILTERS: plugin.timeplus-proton-datasource:debug
GF_LOG_LEVEL: debug
GF_DATAPROXY_LOGGING: 1
GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS: timeplus-proton-datasource
proton:
image: ghcr.io/timeplus-io/proton:latest
pull_policy: always
ports:
- 3218:3218 # HTTP Streaming
- 8463:8463 # TCP Streaming
carsharing_datagen:
image: timeplus/cardemo:latest
pull_policy: always
entrypoint: /bin/sh
command: -c "sleep 15 && echo \"$$CONSOLE_CONFIG_FILE\" > /timeplus/sink.yaml; /timeplus/cardemo --config /timeplus/.cardemo.yaml -f /timeplus/sink.yaml"
environment:
CONSOLE_CONFIG_FILE: |
sinks:
- type: proton
properties:
interval: 200
host: proton
depends_on:
- proton