docker-compose.yml 908 Bytes
Newer Older
1
2
3
4
5
6
version: '3'
services:
  prom:
    image: prom/prometheus
    container_name: prom
    restart: always
7
8
    ports:
      - 10090:9090
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
    environment:
      - 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
    volumes:
      - ./prometheus.yml:/etc/prometheus/prometheus.yml
      - prom-data:/prometheus

  bbexp:
    image: prom/blackbox-exporter
    container_name: bbexp
    restart: always
    environment:
      - config.file="/config.yml"
    volumes:
      - ./blackbox-exporter.yml:/config.yml

  graf:
    image: grafana/grafana
    container_name: graf
    restart: always
    ports:
32
      - 4000:3000
33
34
35
36
37
38
39
    volumes:
      - ./grafana.ini:/etc/grafana/grafana.ini
      - graf-data:/var/lib/grafana

volumes:
  prom-data:
  graf-data: