2024-01-22 14:45:31 +00:00
|
|
|
services:
|
|
|
|
grafana:
|
|
|
|
container_name: grafana
|
2024-02-02 14:40:44 +00:00
|
|
|
image: grafana/grafana:10.3.1
|
2024-01-22 14:45:31 +00:00
|
|
|
depends_on:
|
|
|
|
- "victoriametrics"
|
|
|
|
ports:
|
|
|
|
- 3000:3000
|
|
|
|
entrypoint: [ "/bin/bash", "-c" ]
|
2024-01-22 15:05:44 +00:00
|
|
|
command: [ "chmod +x /download.sh && /download.sh && /run.sh" ]
|
2024-01-22 14:45:31 +00:00
|
|
|
volumes:
|
|
|
|
- grafanadata:/var/lib/grafana
|
2024-01-22 15:05:44 +00:00
|
|
|
- ./provisioning/datasources/victoriametrics-datasource:/etc/grafana/provisioning/datasources
|
2024-01-22 14:45:31 +00:00
|
|
|
- ./provisioning/dashboards:/etc/grafana/provisioning/dashboards
|
|
|
|
- ./provisioning/plugins/:/var/lib/grafana/plugins
|
|
|
|
- ./../../dashboards/vm/victoriametrics.json:/var/lib/grafana/dashboards/vm.json
|
|
|
|
- ./../../dashboards/vm/vmagent.json:/var/lib/grafana/dashboards/vmagent.json
|
|
|
|
- ./../../dashboards/vm/vmalert.json:/var/lib/grafana/dashboards/vmalert.json
|
2024-01-22 15:05:44 +00:00
|
|
|
- ./vm-datasource/download.sh:/download.sh
|
2024-01-22 14:45:31 +00:00
|
|
|
environment:
|
2024-02-20 13:31:15 +00:00
|
|
|
- "GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=victoriametrics-datasource"
|
2024-01-22 14:45:31 +00:00
|
|
|
networks:
|
|
|
|
- vm_net
|
|
|
|
restart: always
|