“Elasticsearch Docker” Kode Jawaban

Jalankan Elasticsearch Docker

docker run --rm -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" --name elasticsearch docker.elastic.co/elasticsearch/elasticsearch:7.11.1
Brave Beetle

Docker Elasticsearch Versi Terbaru

docker pull docker.elastic.co/elasticsearch/elasticsearch:7.11.2
docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.11.2
Kaushal

Jalankan Elasticsearch Docker

docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.9.1
Lucky LyreDragonbird

Instance Elasticsearch Docker

if already have the elasticsearch docker image locally
sudo docker run --rm -d -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" --name elasticsearch --net searchnetwork elasticsearch:7.13.4
check network by following command
sudo network ls
kibna and elasticsearch must be in same network
create network by
sudo create network my_net
Faithful Fly

Elasticsearch Docker

  ###########################
  # ELK SERVICES NODE 1
  ###########################
  els1:
    image: docker.elastic.co/elasticsearch/${ELK_VERSION}
    restart: always
    healthcheck:
      start_period: 60ms
      timeout: 130ms
      interval: 30ms
      test: ifconfig | grep broadcast && clear
    ports:
      - 9200:9200
    env_file: .env
    environment:
      - node.name=els1
      - cluster.name=els-docker-cluster
      - cluster.initial_master_nodes=els1,els2,els3
      - discovery.seed_hosts=els2,els3
      - discovery.zen.minimum_master_nodes=2
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
    volumes:
      - els1-data:/usr/share/elasticsearch/data
    networks:
      - node_networks
  ###########################
  # ELK SERVICES NODE 2
  ###########################
  els2:
    image: docker.elastic.co/elasticsearch/${ELK_VERSION}
    restart: always
    healthcheck:
      start_period: 60ms
      timeout: 130ms
      interval: 30ms
      test: ifconfig | grep broadcast && clear
    ports:
      - 9300:9200
    env_file: .env
    environment:
      - node.name=els2
      - cluster.name=els-docker-cluster
      - cluster.initial_master_nodes=els1,els2,els3
      - discovery.seed_hosts=els1,els3
      - discovery.zen.minimum_master_nodes=2
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
    volumes:
      - els2-data:/usr/share/elasticsearch/data
    networks:
      - node_networks
  ###########################
  # ELK SERVICES NODE 3
  ###########################
  els3:
    image: docker.elastic.co/elasticsearch/${ELK_VERSION}
    restart: always
    healthcheck:
      start_period: 60ms
      timeout: 130ms
      interval: 30ms
      test: ifconfig | grep broadcast && clear
    ports:
      - 9400:9200
    env_file: .env
    environment:
      - node.name=els3
      - cluster.name=els-docker-cluster
      - cluster.initial_master_nodes=els1,els2,els3
      - discovery.seed_hosts=els1,els2
      - discovery.zen.minimum_master_nodes=2
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
    volumes:
      - els3-data:/usr/share/elasticsearch/data
    networks:
      - node_networks
Restu Wahyu Saputra

Mulai pencarian elastis Docker

docker-compose -f src/main/docker/elasticsearch.yml up
Good Gemsbok

Jawaban yang mirip dengan “Elasticsearch Docker”

Pertanyaan yang mirip dengan “Elasticsearch Docker”

Lebih banyak jawaban terkait untuk “Elasticsearch Docker” di Shell/Bash

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya