Advertisement
Aleksandr37rus

Untitled

Dec 13th, 2022
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.80 KB | None | 0 0
  1.   es01:
  2.     # depends_on:
  3.     #   setup:
  4.     #     condition: service_healthy
  5.     image: elasticsearch:${STACK_VERSION}
  6.     volumes:
  7.       # - certs:/usr/share/elasticsearch/config/certs
  8.       - esdata01:/usr/share/elasticsearch/data
  9.     networks:
  10.       - es-net
  11.     ports:
  12.       - ${ELASTICSEARCH_PORT}:9200
  13.     environment:
  14.       - node.name=es01
  15.       - cluster.name=${CLUSTER_NAME}
  16.       - cluster.initial_master_nodes=es01,es02,es03
  17.       - discovery.seed_hosts=es02,es03
  18.       - ELASTIC_PASSWORD=${ELASTICSEARCH_PASSWORD}
  19.       - bootstrap.memory_lock=true
  20.       - xpack.security.enabled=false
  21.       - action.destructive_requires_name=false
  22.       # - xpack.security.http.ssl.enabled=true
  23.       # - xpack.security.http.ssl.key=certs/es01/es01.key
  24.       # - xpack.security.http.ssl.certificate=certs/es01/es01.crt
  25.       # - xpack.security.http.ssl.certificate_authorities=certs/ca/ca.crt
  26.       # - xpack.security.http.ssl.verification_mode=certificate
  27.       # - xpack.security.transport.ssl.enabled=true
  28.       # - xpack.security.transport.ssl.key=certs/es01/es01.key
  29.       # - xpack.security.transport.ssl.certificate=certs/es01/es01.crt
  30.       # - xpack.security.transport.ssl.certificate_authorities=certs/ca/ca.crt
  31.       # - xpack.security.transport.ssl.verification_mode=certificate
  32.       # - xpack.license.self_generated.type=${LICENSE}
  33.     mem_limit: ${MEM_LIMIT}
  34.     ulimits:
  35.       memlock:
  36.         soft: -1
  37.         hard: -1
  38.     # healthcheck:
  39.     #   test:
  40.     #     [
  41.     #       "CMD-SHELL",
  42.     #       # "curl -s --cacert config/certs/ca/ca.crt https://localhost:9200 | grep -q 'missing authentication credentials'"
  43.     #       "curl http://localhost:9200 | grep -q 'missing authentication credentials'"
  44.     #     ]
  45.     #   interval: 10s
  46.     #   timeout: 10s
  47.     #   retries: 120
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement