Here is an example of how to include environmental variables to change the Grafana configuration using docker-compose. With this solved this issue #https://github.com/grafana/grafana/issues/36929
version: '3.7'
services:
grafana:
image: grafana/grafana
container_name: grafana_container
restart: always
ports:
- 3000:3000
networks:
- monitoring_network
volumes:
- grafana-volume:/var/lib/grafana
environment:
- GF_LIVE_MAX_CONNECTIONS=0
influxdb:
image: influxdb:1.8.6
container_name: influxdb_container
restart: always
ports:
- 8086:8086
networks:
- monitoring_network
volumes:
- influxdb-volume:/var/lib/influxdb
networks:
monitoring_network:
volumes:
grafana-volume:
external: true
influxdb-volume:
external: true