27 lines
859 B
YAML
27 lines
859 B
YAML
|
|
# Docker Compose for Grafana with mt5cli SQLite datasource.
|
||
|
|
#
|
||
|
|
# MT5CLI_DB_PATH must be set to the absolute host path of your published .db
|
||
|
|
# file before running `docker compose up -d`. Compose will refuse to start if
|
||
|
|
# the variable is missing or empty.
|
||
|
|
#
|
||
|
|
# Example:
|
||
|
|
# MT5CLI_DB_PATH=/home/user/history.mt5cli.db docker compose up -d
|
||
|
|
|
||
|
|
services:
|
||
|
|
grafana:
|
||
|
|
image: grafana/grafana:latest
|
||
|
|
ports:
|
||
|
|
- "3000:3000"
|
||
|
|
environment:
|
||
|
|
GF_PATHS_PROVISIONING: /etc/grafana/provisioning
|
||
|
|
GF_INSTALL_PLUGINS: frser-sqlite-datasource
|
||
|
|
volumes:
|
||
|
|
- ./provisioning:/etc/grafana/provisioning:ro
|
||
|
|
- ./dashboards:/var/lib/grafana/dashboards:ro
|
||
|
|
- grafana-storage:/var/lib/grafana
|
||
|
|
- ${MT5CLI_DB_PATH:?Set MT5CLI_DB_PATH to the path of your published mt5cli SQLite DB}:/data/mt5cli.db:ro
|
||
|
|
user: "472"
|
||
|
|
|
||
|
|
volumes:
|
||
|
|
grafana-storage:
|