1e1k_base_cluster.yml
version: "3.6"
networks:
bigdata:
external: true
volumes:
es721data1:
driver: local
services:
es721Node1:
image: elasticsearch:${es_version:-7.2.1}
restart: always
container_name: es721Node1
environment:
- node.name=es721Node1
- node.master=true
- node.data=true
- node.ingest=true
- node.ml=true
- cluster.name=docker-cluster
- cluster.initial_master_nodes=es721Node1
- discovery.seed_hosts=es721Node1
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- path.repo=/usr/share/elasticsearch/backup
- node.attr.name=es721Node1
# - xpack.security.enabled=true
# - xpack.security.transport.ssl.enabled=true
# - xpack.security.transport.ssl.keystore.type=PKCS12
# - xpack.security.transport.ssl.verification_mode=certificate
# - xpack.security.transport.ssl.keystore.path=elastic-certificates.p12
# - xpack.security.transport.ssl.truststore.path=elastic-certificates.p12
# - xpack.security.transport.ssl.truststore.type=PKCS12
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es721data1:/usr/share/elasticsearch/data
- ./esBackup/:/usr/share/elasticsearch/backup
# - ./elastic-certificates.p12:/usr/share/elasticsearch/config/elastic-certificates.p12
ports:
- 9200:9200
- 9300:9300
networks:
- bigdata
kibana721:
image: kibana:${es_version:-7.2.1}
container_name: kibana721
environment:
ELASTICSEARCH_HOSTS: http://es721Node1:9200
ELASTICSEARCH_USERNAME: kibana
ELASTICSEARCH_PASSWORD: kibana-password
depends_on:
- es721Node1
ports:
- 5601:5601
networks:
- bigdata
1m2d1k_normal_cluster.yml
version: "3.6"
networks:
bigdata:
external: true
volumes:
es721data1:
driver: local
es721data2:
driver: local
es721data3:
driver: local
esBackup:
driver: local
services:
es721Node1:
image: elasticsearch:${es_version:-7.2.1}
restart: always
container_name: es721Node1
environment:
- node.name=es721Node1
- node.master=true
- node.data=true
- node.ingest=true
- node.ml=true
- node.attr.AZ=earth
- node.attr.hot_warm_type=hot
- node.attr.storage=large
- cluster.routing.allocation.awareness.attributes=AZ
- cluster.routing.allocation.awareness.force.AZ.values=earth,mars
- cluster.name=docker-cluster
- cluster.initial_master_nodes=es721Node1
- discovery.seed_hosts=es721Node1
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- path.repo=/usr/share/elasticsearch/backup
- node.attr.name=es721Node1
# - xpack.security.enabled=true
# - xpack.security.transport.ssl.enabled=true
# - xpack.security.transport.ssl.keystore.type=PKCS12
# - xpack.security.transport.ssl.verification_mode=certificate
# - xpack.security.transport.ssl.keystore.path=elastic-certificates.p12
# - xpack.security.transport.ssl.truststore.path=elastic-certificates.p12
# - xpack.security.transport.ssl.truststore.type=PKCS12
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es721data1:/usr/share/elasticsearch/data
- ./esBackup/:/usr/share/elasticsearch/backup
- ./elastic-certificates.p12:/usr/share/elasticsearch/config/elastic-certificates.p12
ports:
- 9200:9200
- 9300:9300
networks:
- bigdata
es721Node2:
image: elasticsearch:${es_version:-7.2.1}
restart: always
container_name: es721Node2
environment:
- node.name=es721Node2
- node.master=false
- node.data=true
- node.ingest=true
- node.ml=false
- node.attr.AZ=earth
- node.attr.hot_warm_type=warm
- node.attr.storage=small
- cluster.routing.allocation.awareness.attributes=AZ
- cluster.routing.allocation.awareness.force.AZ.values=earth,mars
- cluster.name=docker-cluster
- cluster.initial_master_nodes=es721Node1
- discovery.seed_hosts=es721Node1
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- path.repo=/usr/share/elasticsearch/backup
- node.attr.name=es721Node2
# - xpack.security.enabled=true
# - xpack.security.transport.ssl.enabled=true
# - xpack.security.transport.ssl.keystore.type=PKCS12
# - xpack.security.transport.ssl.verification_mode=certificate
# - xpack.security.transport.ssl.keystore.path=elastic-certificates.p12
# - xpack.security.transport.ssl.truststore.path=elastic-certificates.p12
# - xpack.security.transport.ssl.truststore.type=PKCS12
ulimits:
memlock:
soft: -1
hard: -1
depends_on:
- es721Node1
volumes:
- es721data2:/usr/share/elasticsearch/data
- ./esBackup/:/usr/share/elasticsearch/backup
# - ./elastic-certificates.p12:/usr/share/elasticsearch/config/elastic-certificates.p12
networks:
- bigdata
es721Node3:
image: elasticsearch:${es_version:-7.2.1}
restart: always
container_name: es721Node3
environment:
- node.name=es721Node3
- node.master=false
- node.data=true
- node.ingest=true
- node.ml=false
- node.attr.AZ=mars
- node.attr.hot_warm_type=warm
- node.attr.storage=large
- cluster.routing.allocation.awareness.attributes=AZ
- cluster.routing.allocation.awareness.force.AZ.values=earth,mars
- cluster.name=docker-cluster
- cluster.initial_master_nodes=es721Node1
- discovery.seed_hosts=es721Node1
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- path.repo=/usr/share/elasticsearch/backup
- node.attr.name=es721Node3
# - xpack.security.enabled=true
# - xpack.security.transport.ssl.enabled=true
# - xpack.security.transport.ssl.keystore.type=PKCS12
# - xpack.security.transport.ssl.verification_mode=certificate
# - xpack.security.transport.ssl.keystore.path=elastic-certificates.p12
# - xpack.security.transport.ssl.truststore.path=elastic-certificates.p12
# - xpack.security.transport.ssl.truststore.type=PKCS12
ulimits:
memlock:
soft: -1
hard: -1
depends_on:
- es721Node1
volumes:
- es721data3:/usr/share/elasticsearch/data
- ./esBackup/:/usr/share/elasticsearch/backup
# - ./elastic-certificates.p12:/usr/share/elasticsearch/config/elastic-certificates.p12
networks:
- bigdata
kibana721:
image: kibana:${es_version:-7.2.1}
container_name: kibana721
environment:
ELASTICSEARCH_HOSTS: http://es721Node1:9200
# ELASTICSEARCH_USERNAME: kibana
# ELASTICSEARCH_PASSWORD: W3omIVEavL1kVWsnsG7p
depends_on:
- es721Node1
ports:
- 5601:5601
networks:
- bigdata
2e2k_two_clusters.yml
version: "3.6"
networks:
bigdata:
external: true
volumes:
es721data1:
driver: local
es721Node1-2:
driver: local
services:
es721Node1:
image: elasticsearch:${es_version:-7.2.1}
restart: always
container_name: es721Node1
environment:
- node.name=es721Node1
- node.master=true
- node.data=true
- node.ingest=true
- node.ml=true
- cluster.name=docker-cluster
- cluster.initial_master_nodes=es721Node1
- discovery.seed_hosts=es721Node1
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- path.repo=/usr/share/elasticsearch/backup
- node.attr.name=es721Node1
# - xpack.security.enabled=true
# - xpack.security.transport.ssl.enabled=true
# - xpack.security.transport.ssl.keystore.type=PKCS12
# - xpack.security.transport.ssl.verification_mode=certificate
# - xpack.security.transport.ssl.keystore.path=elastic-certificates.p12
# - xpack.security.transport.ssl.truststore.path=elastic-certificates.p12
# - xpack.security.transport.ssl.truststore.type=PKCS12
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es721data1:/usr/share/elasticsearch/data
- ./esBackup/:/usr/share/elasticsearch/backup
# - ./elastic-certificates.p12:/usr/share/elasticsearch/config/elastic-certificates.p12
ports:
- 9200:9200
- 9300:9300
networks:
- bigdata
kibana721:
image: kibana:${es_version:-7.2.1}
container_name: kibana721
environment:
ELASTICSEARCH_HOSTS: http://es721Node1:9200
# ELASTICSEARCH_USERNAME: kibana
# ELASTICSEARCH_PASSWORD: kibana-password
depends_on:
- es721Node1
ports:
- 5601:5601
networks:
- bigdata
# Changed password for user apm_system
# PASSWORD apm_system = zfTXHVVkciaoboy1MkTH
# Changed password for user kibana
# PASSWORD kibana = W3omIVEavL1kVWsnsG7p
# Changed password for user logstash_system
# PASSWORD logstash_system = jNKTHSjilsMMhP19WGSS
# Changed password for user beats_system
# PASSWORD beats_system = xAJJP75Sg94Y5bi74GYk
# Changed password for user remote_monitoring_user
# PASSWORD remote_monitoring_user = GfMMlI4is57muceplA19
# Changed password for user elastic
# PASSWORD elastic = 2nScHdIQgdBbIgJiQ0z2
es721Node1-2:
image: elasticsearch:${es_version:-7.2.1}
restart: always
container_name: es721Node1-2
environment:
- node.name=es721Node1-2
- node.master=true
- node.data=true
- node.ingest=true
- node.ml=true
- cluster.name=docker-cluster-2
- cluster.initial_master_nodes=es721Node1-2
- discovery.seed_hosts=es721Node1-2
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- path.repo=/usr/share/elasticsearch/backup
- node.attr.name=es721Node1-2
# - xpack.security.enabled=true
# - xpack.security.transport.ssl.enabled=true
# - xpack.security.transport.ssl.keystore.type=PKCS12
# - xpack.security.transport.ssl.verification_mode=certificate
# - xpack.security.transport.ssl.keystore.path=elastic-certificates.p12
# - xpack.security.transport.ssl.truststore.path=elastic-certificates.p12
# - xpack.security.transport.ssl.truststore.type=PKCS12
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es721Node1-2:/usr/share/elasticsearch/data
- ./esBackup/:/usr/share/elasticsearch/backup
# - ./elastic-certificates.p12:/usr/share/elasticsearch/config/elastic-certificates.p12
ports:
- 9201:9200
- 9301:9300
networks:
- bigdata
kibana721-2:
image: kibana:${es_version:-7.2.1}
container_name: kibana721-2
environment:
ELASTICSEARCH_HOSTS: http://es721Node1-2:9200
# ELASTICSEARCH_USERNAME: kibana
# ELASTICSEARCH_PASSWORD: kibana-password
depends_on:
- es721Node1-2
ports:
- 5602:5601
networks:
- bigdata