blob: 7e3a7a6bf3c021b145e04113770817a746534462 [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'
7 elasticsearch_discovery_zen_minimum_master_nodes: 1
Volodymyr Stoikof6dea972017-06-19 18:43:09 +03008 elasticsearch_discovery_type: single-node
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +03009 docker:
10 client:
11 stack:
12 elasticsearch:
Volodymyr Stoiko15361042017-06-12 16:03:51 +030013 environment:
14 cluster.name: ${_param:elasticsearch_cluster_name}
15 xpack.security.enabled: ${_param:elasticsearch_xpack_security_enabled}
16 discovery.zen.minimum_master_nodes: ${_param:elasticsearch_discovery_zen_minimum_master_nodes}
Volodymyr Stoikof6dea972017-06-19 18:43:09 +030017 discovery.type: ${_param:elasticsearch_discovery_type}
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +030018 service:
19 cluster:
Volodymyr Stoiko38d3d872017-06-20 17:55:07 +030020 image: ${_param:docker_image_elasticsearch}
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +030021 deploy:
22 replicas: ${_param:elasticsearch_replicas}
23 restart_policy:
24 condition: any
25 ports:
Volodymyr Stoiko38d3d872017-06-20 17:55:07 +030026 - ${_param:haproxy_elasticsearch_http_exposed_port}:${_param:haproxy_elasticsearch_http_bind_port}
27 - ${_param:haproxy_elasticsearch_binary_exposed_port}:${_param:haproxy_elasticsearch_binary_bind_port}
Volodymyr Stoikoe5ab6032017-04-22 17:41:29 +030028 volumes:
Volodymyr Stoiko15361042017-06-12 16:03:51 +030029 - /srv/volumes/elasticsearch:/usr/share/elasticsearch/data