Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- es01:
- # depends_on:
- # setup:
- # condition: service_healthy
- image: elasticsearch:${STACK_VERSION}
- volumes:
- # - certs:/usr/share/elasticsearch/config/certs
- - esdata01:/usr/share/elasticsearch/data
- networks:
- - es-net
- ports:
- - ${ELASTICSEARCH_PORT}:9200
- environment:
- - node.name=es01
- - cluster.name=${CLUSTER_NAME}
- - cluster.initial_master_nodes=es01,es02,es03
- - discovery.seed_hosts=es02,es03
- - ELASTIC_PASSWORD=${ELASTICSEARCH_PASSWORD}
- - bootstrap.memory_lock=true
- - xpack.security.enabled=false
- - action.destructive_requires_name=false
- # - xpack.security.http.ssl.enabled=true
- # - xpack.security.http.ssl.key=certs/es01/es01.key
- # - xpack.security.http.ssl.certificate=certs/es01/es01.crt
- # - xpack.security.http.ssl.certificate_authorities=certs/ca/ca.crt
- # - xpack.security.http.ssl.verification_mode=certificate
- # - xpack.security.transport.ssl.enabled=true
- # - xpack.security.transport.ssl.key=certs/es01/es01.key
- # - xpack.security.transport.ssl.certificate=certs/es01/es01.crt
- # - xpack.security.transport.ssl.certificate_authorities=certs/ca/ca.crt
- # - xpack.security.transport.ssl.verification_mode=certificate
- # - xpack.license.self_generated.type=${LICENSE}
- mem_limit: ${MEM_LIMIT}
- ulimits:
- memlock:
- soft: -1
- hard: -1
- # healthcheck:
- # test:
- # [
- # "CMD-SHELL",
- # # "curl -s --cacert config/certs/ca/ca.crt https://localhost:9200 | grep -q 'missing authentication credentials'"
- # "curl http://localhost:9200 | grep -q 'missing authentication credentials'"
- # ]
- # interval: 10s
- # timeout: 10s
- # retries: 120
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement