2017-12-19 13:16:39 +01:00

132 lines
2.8 KiB
YAML

version: '2'
services:
beat:
build: .
environment:
- TEST_ENVIRONMENT=false
working_dir: /go/src/github.com/elastic/beats/metricbeat
volumes:
- ./..:/go/src/github.com/elastic/beats/
# This is required to on-demand launching the rest on containers for tests & also docker module tests:
- /var/run/docker.sock:/var/run/docker.sock
command: make
env_file:
- ./module/aerospike/_meta/env
- ./module/apache/_meta/env
- ./module/ceph/_meta/env
- ./module/couchbase/_meta/env
- ./module/dropwizard/_meta/env
- ./module/elasticsearch/_meta/env
- ./module/etcd/_meta/env
- ./module/haproxy/_meta/env
- ./module/http/_meta/env
- ./module/jolokia/_meta/env
- ./module/kafka/_meta/env
- ./module/kibana/_meta/env
- ./module/kubernetes/_meta/env
- ./module/logstash/_meta/env
- ./module/memcached/_meta/env
- ./module/mongodb/_meta/env
- ./module/mysql/_meta/env
- ./module/nginx/_meta/env
- ./module/php_fpm/_meta/env
- ./module/postgresql/_meta/env
- ./module/prometheus/_meta/env
- ./module/rabbitmq/_meta/env
- ./module/redis/_meta/env
- ./module/zookeeper/_meta/env
# Modules
aerospike:
build: ./module/aerospike/_meta
apache:
build: ./module/apache/_meta
ceph:
build: ./module/ceph/_meta
couchbase:
build: ./module/couchbase/_meta
dropwizard:
build: ./module/dropwizard/_meta
elasticsearch:
build: ./module/elasticsearch/_meta
environment:
- "ES_JAVA_OPTS=-Xms90m -Xmx90m"
- "network.host="
- "transport.host=127.0.0.1"
- "http.host=0.0.0.0"
- "xpack.security.enabled=false"
etcd:
build: ./module/etcd/_meta
haproxy:
build: ./module/haproxy/_meta
http:
build: ./module/http/_meta
jolokia:
build: ./module/jolokia/_meta
kafka:
build: ./module/kafka/_meta
kibana:
build: ./module/kibana/_meta
kubernetes:
build: ./module/kubernetes/_meta
network_mode: host
pid: host
privileged: true
volumes:
- /:/rootfs:ro
- /sys:/sys
- /var/lib/docker:/var/lib/docker
- /var/run:/var/run
kubestate:
build:
context: ./module/kubernetes/_meta/
dockerfile: Dockerfile.kube-state
depends_on:
- kubernetes
logstash:
build: ./module/logstash/_meta
memcached:
build: ./module/memcached/_meta
mongodb:
build: ./module/mongodb/_meta
mysql:
build: ./module/mysql/_meta
nginx:
build: ./module/nginx/_meta
phpfpm:
build: ./module/php_fpm/_meta
postgresql:
build: ./module/postgresql/_meta
prometheus:
build: ./module/prometheus/_meta
rabbitmq:
build: ./module/rabbitmq/_meta
redis:
build: ./module/redis/_meta
zookeeper:
build: ./module/zookeeper/_meta