blob: 1c22e8fa8b6446e1b2776af21f84332dd2573d03 [file] [log] [blame]
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +03001parameters:
2 _param:
3 elasticsearch_replicas: 1
Volodymyr Stoiko15361042017-06-12 16:03:51 +03004 docker_image_elasticsearch: docker.elastic.co/elasticsearch/elasticsearch:5.4.1
5 elasticsearch_cluster_name: oss-cluster
6 elasticsearch_xpack_security_enabled: 'false'
Vladislav Naumov1a4fdd62017-08-29 12:50:46 +03007 elasticsearch_xpack_monitoring_enabled: 'false'
Volodymyr Stoiko15361042017-06-12 16:03:51 +03008 elasticsearch_discovery_zen_minimum_master_nodes: 1
Volodymyr Stoikof6dea972017-06-19 18:43:09 +03009 elasticsearch_discovery_type: single-node
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +030010 docker:
11 client:
12 stack:
13 elasticsearch:
Volodymyr Stoiko15361042017-06-12 16:03:51 +030014 environment:
15 cluster.name: ${_param:elasticsearch_cluster_name}
16 xpack.security.enabled: ${_param:elasticsearch_xpack_security_enabled}
Vladislav Naumov1a4fdd62017-08-29 12:50:46 +030017 xpack.monitoring.enabled: ${_param:elasticsearch_xpack_monitoring_enabled}
Volodymyr Stoiko15361042017-06-12 16:03:51 +030018 discovery.zen.minimum_master_nodes: ${_param:elasticsearch_discovery_zen_minimum_master_nodes}
Volodymyr Stoikof6dea972017-06-19 18:43:09 +030019 discovery.type: ${_param:elasticsearch_discovery_type}
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +030020 service:
21 cluster:
Vladislav Naumov38b62db2017-06-19 16:45:20 +030022 image: ${_param:docker_image_elasticsearch}
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +030023 deploy:
24 replicas: ${_param:elasticsearch_replicas}
25 restart_policy:
26 condition: any
27 ports:
Volodymyr Stoiko38d3d872017-06-20 17:55:07 +030028 - ${_param:haproxy_elasticsearch_http_exposed_port}:${_param:haproxy_elasticsearch_http_bind_port}
29 - ${_param:haproxy_elasticsearch_binary_exposed_port}:${_param:haproxy_elasticsearch_binary_bind_port}
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +030030 volumes:
Vladislav Naumov38b62db2017-06-19 16:45:20 +030031 - /srv/volumes/elasticsearch:/usr/share/elasticsearch/data