docker

Docker for services
git clone git://git.unixkoans.com/docker.git
Log | Files | Refs

docker-compose.yml (1106B)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: '2'
services:

  grafana:
    image: grafana/grafana
    restart: always
    ports:
      - 9000:3000
    volumes:
      - ./data/grafana:/var/lib/grafana
    environment:
      - GF_SECURITY_ADMIN_PASSWORD=jZFEnD49nZZT3Dp6
      - GF_USERS_ALLOW_SIGN_UP=false
      #- GF_SMTP_ENABLED=true
      #- GF_SMTP_FROM_ADDRESS=
      #- GF_SMTP_FROM_NAME=Selfhost Monitor
      #- GF_SMTP_HOST=smtp.exmail.qq.com:465
      #- GF_SMTP_USER=
      #- GF_SMTP_PASSWORD=

  prometheus:
    image: prom/prometheus
    command: -config.file=/etc/prometheus/prometheus.yml -storage.local.path=/prometheus -web.console.libraries=/usr/share/prometheus/console_libraries -web.console.templates=/usr/share/prometheus/consoles -storage.local.target-heap-size=1073741824
    restart: always
    ports:
      - 9001:9090
    volumes:
      - ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
      - ./data/prometheus:/prometheus
    links:
      - blackbox_exporter

  blackbox_exporter:
    image: prom/blackbox-exporter
    restart: always
    volumes:
      - ./blackbox.yml:/etc/blackbox_exporter/config.yml:ro