Volodymyr Stoiko | e5ab603 | 2017-04-22 17:41:29 +0300 | [diff] [blame] | 1 | parameters: |
| 2 | _param: |
| 3 | elasticsearch_replicas: 1 |
Volodymyr Stoiko | 1536104 | 2017-06-12 16:03:51 +0300 | [diff] [blame] | 4 | 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 Stoiko | f6dea97 | 2017-06-19 18:43:09 +0300 | [diff] [blame] | 8 | elasticsearch_discovery_type: single-node |
Volodymyr Stoiko | e5ab603 | 2017-04-22 17:41:29 +0300 | [diff] [blame] | 9 | docker: |
| 10 | client: |
| 11 | stack: |
| 12 | elasticsearch: |
Volodymyr Stoiko | 1536104 | 2017-06-12 16:03:51 +0300 | [diff] [blame] | 13 | 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 Stoiko | f6dea97 | 2017-06-19 18:43:09 +0300 | [diff] [blame] | 17 | discovery.type: ${_param:elasticsearch_discovery_type} |
Volodymyr Stoiko | e5ab603 | 2017-04-22 17:41:29 +0300 | [diff] [blame] | 18 | service: |
| 19 | cluster: |
Volodymyr Stoiko | 38d3d87 | 2017-06-20 17:55:07 +0300 | [diff] [blame^] | 20 | image: ${_param:docker_image_elasticsearch} |
Volodymyr Stoiko | e5ab603 | 2017-04-22 17:41:29 +0300 | [diff] [blame] | 21 | deploy: |
| 22 | replicas: ${_param:elasticsearch_replicas} |
| 23 | restart_policy: |
| 24 | condition: any |
| 25 | ports: |
Volodymyr Stoiko | 38d3d87 | 2017-06-20 17:55:07 +0300 | [diff] [blame^] | 26 | - ${_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 Stoiko | e5ab603 | 2017-04-22 17:41:29 +0300 | [diff] [blame] | 28 | volumes: |
Volodymyr Stoiko | 1536104 | 2017-06-12 16:03:51 +0300 | [diff] [blame] | 29 | - /srv/volumes/elasticsearch:/usr/share/elasticsearch/data |