Answers for "grafana cant save when volumes"

0

grafana cant save when volumes

version: '3'

services:
  grafana:
    image: grafana/grafana
    container_name: grafana
    depends_on:
      - influxdb
    ports:
      - 3000:3000
    volumes:
      - /docker_data/grafana_data:/var/lib/grafana
      - /docker_data/certs:/certs
    env_file:
      - /docker_data/grafana_conf/config.monitoring 
    environment:
      - HTTP_USER="{{ grafana_user }}"
      - HTTP_PASS="{{ grafana_passwd }}"
      - INFLUXDB_HOST=influxdb
      - INFLUXDB_PORT=8086
      - INFLUXDB_NAME="{{ db_name }}"
      - INFLUXDB_USER="{{ influxdb_user }}"
      - INFLUXDB_PASS="{{ influxdb_passwd }}"
    restart: always
   
  prometheus:
    image: prom/prometheus
    container_name: prometheus
    volumes:
      - /docker_data/prometheus_conf:/etc/prometheus/
      - /docker_data/prometheus_data:/prometheus
    command:
      - '--config.file=/etc/prometheus/prometheus.yml'
      - '--storage.tsdb.path=/prometheus'
      - '--web.console.libraries=/usr/share/prometheus/console_libraries'
      - '--web.console.templates=/usr/share/prometheus/consoles'
    ports:
      - 9090:9090
    links:
      - grafana
      - influxdb
    restart: always 
  
  influxdb:
    image: docker.io/influxdb
    container_name: influxdb
    ports:
      - "8086:8086"
    volumes:
      - /docker_data/influxdb_data:/var/lib/influxdb
    env_file:
      - '/docker_data/influxdb_conf/env.influxdb' 
    restart: always
Posted by: Guest on January-10-2021

Browse Popular Code Answers by Language