G0nz0uk

docker-compose

Apr 19th, 2021
175
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3'
  2.  
  3. services:
  4.   grafana:
  5.     container_name: grafana
  6.     image: "grafana/grafana:7.5.4"
  7.     volumes:
  8.      - grafana-etc:/etc/grafana:ro
  9.       - grafana-lib:/var/lib/grafana
  10.       - grafana-log:/var/log/grafana
  11.       - /usr/share/csv:/etc/grafana/csv
  12.       - /etc/certs:/etc/certs:ro
  13.     env_file:
  14.    - ./config.env
  15.     ports:
  16.    - 3000:3000
  17.     depends_on:
  18.    - influxdb
  19.     restart: always
  20.  
  21.   influxdb:
  22.     container_name: influxdb
  23.     image: "influxdb:1.8.4"
  24.     volumes:
  25.    - influxdb-lib:/var/lib/influxdb
  26.     - /etc/certs:/etc/certs:ro
  27.     - /etc/stunnel:/etc/stunnel:ro
  28.     env_file:
  29.    - ./config.env
  30.     ports:
  31.    - 8086:8086
  32.     - 8083:8083
  33.     restart: always
  34.  
  35. volumes:
  36.   grafana-etc:
  37.     external: true
  38.   grafana-lib:
  39.     external: true
  40.   grafana-log:
  41.     external: true
  42.   influxdb-lib:
  43.     external: true
RAW Paste Data