2020-11-19 20:51:53 +01:00
|
|
|
version: '3.6'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
elasticsearch:
|
2021-05-18 15:10:08 +02:00
|
|
|
image: docker.elastic.co/elasticsearch/elasticsearch:6.8.15
|
2020-11-19 20:51:53 +01:00
|
|
|
environment:
|
|
|
|
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
|
|
|
- transport.host=0.0.0.0
|
|
|
|
- discovery.type=single-node
|
|
|
|
- xpack.security.enabled=false
|
|
|
|
networks:
|
|
|
|
{{ conductor_network }}:
|
|
|
|
aliases:
|
|
|
|
- es
|
|
|
|
logging:
|
|
|
|
driver: "journald"
|
|
|
|
deploy:
|
|
|
|
mode: replicated
|
|
|
|
replicas: {{ elasticsearch_replicas }}
|
2021-05-18 15:10:08 +02:00
|
|
|
{% if infrastructure != 'local' %}
|
2020-11-19 20:51:53 +01:00
|
|
|
placement:
|
|
|
|
constraints: [node.role == worker]
|
2021-05-18 15:10:08 +02:00
|
|
|
{% endif %}
|
2020-11-19 20:51:53 +01:00
|
|
|
restart_policy:
|
|
|
|
condition: on-failure
|
|
|
|
delay: 5s
|
|
|
|
max_attempts: 3
|
|
|
|
window: 120s
|
|
|
|
|
|
|
|
networks:
|
|
|
|
{{ conductor_network }}:
|