-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
executable file
·64 lines (64 loc) · 2.45 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
61
62
63
64
services:
grafana:
# image: grafana/grafana:latest
container_name: 'cloudeteer-pdfreport-app'
build:
context: ./.config
args:
grafana_image: ${GRAFANA_IMAGE:-grafana-oss}
grafana_version: ${GRAFANA_VERSION:-11.1.4}
development: ${DEVELOPMENT:-false}
cap_add:
- SYS_PTRACE
ports:
- 3000:${GF_SERVER_HTTP_PORT:-3000}/tcp
- 2345:2345/tcp # delve
security_opt:
- "apparmor:unconfined"
- "seccomp:unconfined"
volumes:
- ./dist:/var/lib/grafana/plugins/cloudeteer-pdfreport-app
- ./provisioning:/etc/grafana/provisioning
- ./:/root/cloudeteer-pdfreport-app
environment:
# basic settings
# output to terminal
- TERM=linux
- GF_DEFAULT_APP_MODE=development
- GF_SERVER_HTTP_PORT=${GF_SERVER_HTTP_PORT:-3000}
- GF_LOG_LEVEL=${GF_LOG_LEVEL:-info}
- GF_DATAPROXY_LOGGING=true
# allow anonymous admin so we don't have to set up a password to start testing
- GF_AUTH_ANONYMOUS_ENABLED=${GF_AUTH_ANONYMOUS_ENABLED:-true}
- GF_AUTH_LOGIN_COOKIE_NAME=${GF_AUTH_LOGIN_COOKIE_NAME:-grafana_session}
- GF_AUTH_BASIC_ENABLED=${GF_AUTH_BASIC_ENABLED:-false}
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
# skip login page
# - GF_AUTH_DISABLE_LOGIN_FORM=true
# We need to toggle external service accounts so that Grafana will get
# the token from a service account to read dashboards
- GF_FEATURE_TOGGLES_ENABLE=${GF_FEATURE_TOGGLES_ENABLE:-externalServiceAccounts}
# disable alerting because it vomits logs
- GF_ALERTING_ENABLED=false
- GF_UNIFIED_ALERTING_ENABLED=false
# Grafana image renderer
- GF_RENDERING_SERVER_URL=http://renderer:8081/render
- GF_RENDERING_CALLBACK_URL=http://grafana:${GF_SERVER_HTTP_PORT:-3000}/
- "GF_LOG_FILTERS=rendering:debug plugin.cloudeteer-pdfreport-app:debug"
renderer:
image: grafana/grafana-image-renderer:latest
environment:
# Recommendation of grafana-image-renderer for optimal performance
# https://grafana.com/docs/grafana/latest/setup-grafana/image-rendering/#configuration
- RENDERING_MODE=clustered
- RENDERING_CLUSTERING_MODE=browser
- RENDERING_CLUSTERING_MAX_CONCURRENCY=5
- RENDERING_CLUSTERING_TIMEOUT=60
- IGNORE_HTTPS_ERRORS=true
ports:
- 8081
chrome:
image: chromedp/headless-shell:latest
shm_size: 2G
init: true
network_mode: service:grafana