beat:
  build: .
  links:
    - apache
    - elasticsearch
    - mysql
    - redis
  environment:
    - APACHE_HOST=http://apache/
    - APACHE_PORT=80
    - REDIS_HOST=redis
    - REDIS_PORT=6379
    - MYSQL_DSN=root:test@tcp(mysql:3306)/
    - MYSQL_HOST=mysql
    - MYSQL_PORT=3306
    - TEST_ENVIRONMENT=false
  working_dir: /go/src/github.com/elastic/beats/metricbeat
  volumes:
    - ..:/go/src/github.com/elastic/beats/
  command: make
  entrypoint: /go/src/github.com/elastic/beats/metricbeat/docker-entrypoint.sh
elasticsearch:
  image: elasticsearch:2.2.0
  command: elasticsearch -Des.network.host=0.0.0.0

# Modules
apache:
  build: tests/environments/apache

mysql:
  image: mysql:5.7.10
  environment:
    - MYSQL_ROOT_PASSWORD=test

redis:
  image: redis:3.0.7

beat:
  build: .
  links:
    - apache
    - elasticsearch
    - mysql
    - redis
  environment:
    - APACHE_HOST=http://apache/
    - APACHE_PORT=80
    - REDIS_HOST=redis
    - REDIS_PORT=6379
    - MYSQL_DSN=root:test@tcp(mysql:3306)/
    - MYSQL_HOST=mysql
    - MYSQL_PORT=3306
    - TEST_ENVIRONMENT=false
  working_dir: /go/src/github.com/elastic/beats/metricbeat
  volumes:
    - ..:/go/src/github.com/elastic/beats/
  command: make
  entrypoint: /go/src/github.com/elastic/beats/metricbeat/docker-entrypoint.sh
elasticsearch:
  image: elasticsearch:2.2.0
  command: elasticsearch -Des.network.host=0.0.0.0 -Ees.discovery.zen.minimum_master_nodes=1

# Modules
apache:
  build: tests/environments/apache

mysql:
  image: mysql:5.7.10
  environment:
    - MYSQL_ROOT_PASSWORD=test

redis:
  image: redis:3.0.7

Set minimum_master_nodes in the metricbeat compose file
Set minimum_master_nodes in the metricbeat compose file
