version: '2'
services:
elasticsearch:
image: docker.calix.local:18080/docker-elasticsearch:6.2.2-1
# build:
# context: elasticsearch/
volumes:
- ./elk_data/elk1:/data
# - ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
# - ./elk_data/elk1:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"
environment:
CLUSTER_NAME: elk-cluster
NODE_NAME: node0
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
discovery.type: zen
DISCOVERY_HOSTS: 172.23.46.21
xpack.security.enabled: "false"
# discovery.zen.ping.unicast.hosts: elasticsearch
NETWORK_HOST: 0.0.0.0
# network.bind_host: 172.23.46.21
privileged: true
networks:
- elk
elasticsearch2:
# build:
# context: elasticsearch/
image: docker.calix.local:18080/docker-elasticsearch:6.2.2-1
volumes:
- ./elk_data/elk2:/data
# - ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
# - ./elk_data/elk2:/usr/share/elasticsearch/data
ports:
- "9201:9200"
- "9301:9300"
environment:
CLUSTER_NAME: elk-cluster
NODE_NAME: node1
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
discovery.type: zen
DISCOVERY_HOSTS: 172.23.46.21
xpack.security.enabled: "false"
# discovery.zen.ping.unicast.hosts: elasticsearch
NETWORK_HOST: 0.0.0.0
# network.bind_host: 172.23.46.21
privileged: true
networks:
- elk
elasticsearch3:
# build:
# context: elasticsearch/
image: docker.calix.local:18080/docker-elasticsearch:6.2.2-1
volumes:
- ./elk_data/elk3:/data
# - ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
# - ./elk_data/elk2:/usr/share/elasticsearch/data
ports:
- "9202:9200"
- "9302:9300"
environment:
CLUSTER_NAME: elk-cluster
NODE_NAME: node2
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
discovery.type: zen
DISCOVERY_HOSTS: 172.23.46.21
xpack.security.enabled: "false"
# discovery.zen.ping.unicast.hosts: elasticsearch
NETWORK_HOST: 0.0.0.0
# network.bind_host: 172.23.46.21
privileged: true
networks:
- elk
logstash:
#build:
# context: logstash/
image: docker.elastic.co/logstash/logstash:6.2.2
volumes:
- /root/docker-elk/official/logstash/:/usr/share/logstash/pipeline/
# - ./logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml:ro
# - ./logstash/pipeline:/usr/share/logstash/pipeline:ro
ports:
- "5000:5000"
environment:
#LS_JAVA_OPTS: "-Xmx256m -Xms256m"
- "xpack.monitoring.enabled=false"
- "xpack.security.enabled=false"
networks:
- elk
depends_on:
- elasticsearch
kibana:
image: docker.elastic.co/kibana/kibana:6.2.2
#build:
# context: kibana/
# volumes:
# - ./kibana/config/:/usr/share/kibana/config:ro
ports:
- "5601:5601"
environment:
# - "ELASTICSEARCH_URL=http://elasticsearch:9200"
- "xpack.security.enabled=false"
- "server.ssl.enabled=false"
- "xpack.monitoring.enabled=false"
- "xpack.monitoring.ui.container.elasticsearch.enabled=false"
networks:
- elk
depends_on:
- elasticsearch
networks:
elk:
driver: bridge