github.com/m3db/m3@v1.5.0/scripts/development/m3_prom_remote_stack/docker-compose.yml (about)

     1  version: "3.5"
     2  services:
     3    m3aggregator01:
     4      expose:
     5        - "6001"
     6      ports:
     7        - "127.0.0.1:6001:6001"
     8      networks:
     9        - backend
    10      environment:
    11        - M3AGGREGATOR_HOST_ID=m3aggregator01
    12      build:
    13        context: ../../../bin
    14        dockerfile: ./docker/m3aggregator/development.Dockerfile
    15      image: m3aggregator:dev
    16      volumes:
    17        - "./m3aggregator.yml:/etc/m3aggregator/m3aggregator.yml"
    18    m3coordinator01:
    19      expose:
    20        - "7201"
    21      ports:
    22        - "0.0.0.0:7201:7201"
    23      networks:
    24        - backend
    25      build:
    26        context: ../../../bin
    27        dockerfile: ./docker/m3coordinator/development.Dockerfile
    28      image: m3coordinator:dev
    29      volumes:
    30        - "./m3coordinator.yml.tmp:/etc/m3coordinator/m3coordinator.yml"
    31    prometheusscraper:
    32      expose:
    33        - "9090"
    34      ports:
    35        - "127.0.0.1:9090:9090"
    36      networks:
    37        - backend
    38      image: prom/prometheus:latest
    39      volumes:
    40        - "./prometheus-scraper.yml.tmp:/etc/prometheus/prometheus.yml"
    41      command:
    42        - "--config.file=/etc/prometheus/prometheus.yml"
    43        - "--storage.tsdb.path=/prometheus"
    44        - "--web.console.libraries=/usr/share/prometheus/console_libraries"
    45        - "--web.console.templates=/usr/share/prometheus/consoles"
    46        - "--log.level=debug"
    47    prometheusraw:
    48      networks:
    49        - backend
    50      image: prom/prometheus:latest
    51      volumes:
    52        - "./prometheus.yml:/etc/prometheus/prometheus.yml"
    53      command:
    54        - "--config.file=/etc/prometheus/prometheus.yml"
    55        - "--storage.tsdb.path=/prometheus"
    56        - "--web.console.libraries=/usr/share/prometheus/console_libraries"
    57        - "--web.console.templates=/usr/share/prometheus/consoles"
    58        - "--enable-feature=remote-write-receiver"
    59    prometheusagg:
    60      networks:
    61        - backend
    62      image: prom/prometheus:latest
    63      volumes:
    64        - "./prometheus.yml:/etc/prometheus/prometheus.yml"
    65      command:
    66        - "--config.file=/etc/prometheus/prometheus.yml"
    67        - "--storage.tsdb.path=/prometheus"
    68        - "--web.console.libraries=/usr/share/prometheus/console_libraries"
    69        - "--web.console.templates=/usr/share/prometheus/consoles"
    70        - "--enable-feature=remote-write-receiver"
    71    etcd01:
    72      expose:
    73        - "2379-2380"
    74      ports:
    75        - "0.0.0.0:2379-2380:2379-2380"
    76      networks:
    77        - backend
    78      image: quay.io/coreos/etcd:v3.4.3
    79      command:
    80        - "etcd"
    81        - "--name"
    82        - "etcd01"
    83        - "--listen-peer-urls"
    84        - "http://0.0.0.0:2380"
    85        - "--listen-client-urls"
    86        - "http://0.0.0.0:2379"
    87        - "--advertise-client-urls"
    88        - "http://etcd01:2379"
    89        - "--initial-cluster-token"
    90        - "etcd-cluster-1"
    91        - "--initial-advertise-peer-urls"
    92        - "http://etcd01:2380"
    93        - "--initial-cluster"
    94        - "etcd01=http://etcd01:2380"
    95        - "--initial-cluster-state"
    96        - "new"
    97        - "--data-dir"
    98        - "/var/lib/etcd"
    99    grafana:
   100      build:
   101        context: ../../../
   102        dockerfile: ./docker/grafana/Dockerfile
   103      expose:
   104        - "3000"
   105      ports:
   106        - "0.0.0.0:3000:3000"
   107      networks:
   108        - backend
   109      image: m3grafana:latest
   110  networks:
   111    backend:
   112  volumes:
   113    prom-raw-data:
   114    prom-agg-data: