diff --git a/docker/openchallenges/services/elasticsearch.yml b/docker/openchallenges/services/elasticsearch.yml index fea4b1c4e3..0dbcb0deab 100644 --- a/docker/openchallenges/services/elasticsearch.yml +++ b/docker/openchallenges/services/elasticsearch.yml @@ -6,8 +6,8 @@ services: environment: - node.name=openchallenges-elasticsearch - cluster.name=openchallenges-elasticsearch - - discovery.seed_hosts=openchallenges-elasticsearch-node-2,openchallenges-elasticsearch-node-3 - - cluster.initial_master_nodes=openchallenges-elasticsearch,openchallenges-elasticsearch-node-2,openchallenges-elasticsearch-node-3 + - discovery.seed_hosts= + - cluster.initial_master_nodes=openchallenges-elasticsearch - bootstrap.memory_lock=true - 'ES_JAVA_OPTS=-Xms1g -Xmx1g' networks: @@ -22,52 +22,3 @@ services: resources: limits: memory: 2G - depends_on: - openchallenges-elasticsearch-node-2: - condition: service_healthy - openchallenges-elasticsearch-node-3: - condition: service_healthy - - openchallenges-elasticsearch-node-2: - image: ghcr.io/sage-bionetworks/openchallenges-elasticsearch:${OPENCHALLENGES_VERSION:-local} - container_name: openchallenges-elasticsearch-node-2 - restart: always - environment: - - node.name=openchallenges-elasticsearch-node-2 - - cluster.name=openchallenges-elasticsearch - - discovery.seed_hosts=openchallenges-elasticsearch,openchallenges-elasticsearch-node-3 - - cluster.initial_master_nodes=openchallenges-elasticsearch,openchallenges-elasticsearch-node-2,openchallenges-elasticsearch-node-3 - - bootstrap.memory_lock=true - - 'ES_JAVA_OPTS=-Xms1g -Xmx1g' - networks: - - openchallenges - ulimits: - memlock: - soft: -1 - hard: -1 - deploy: - resources: - limits: - memory: 2G - - openchallenges-elasticsearch-node-3: - image: ghcr.io/sage-bionetworks/openchallenges-elasticsearch:${OPENCHALLENGES_VERSION:-local} - container_name: openchallenges-elasticsearch-node-3 - restart: always - environment: - - node.name=openchallenges-elasticsearch-node-3 - - cluster.name=openchallenges-elasticsearch - - discovery.seed_hosts=openchallenges-elasticsearch,openchallenges-elasticsearch-node-2 - - cluster.initial_master_nodes=openchallenges-elasticsearch,openchallenges-elasticsearch-node-2,openchallenges-elasticsearch-node-3 - - bootstrap.memory_lock=true - - 'ES_JAVA_OPTS=-Xms1g -Xmx1g' - networks: - - openchallenges - ulimits: - memlock: - soft: -1 - hard: -1 - deploy: - resources: - limits: - memory: 2G