Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languageyml
titledocker-compose.yaml
collapsetrue
version: '32.32'
services:
  es01:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.1516.20		# <--- get the latest version
    container_name: es01
    environment:
      - node.name=es01
      - cluster.name=es-docker-cluster
      - discovery.type=single-node
      - bootstrap.memory_lock=true
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
    ulimits:
      memlock:
        soft: -1
        hard: -1
    volumes:
      - data01:/usr/share/elasticsearch/data
    ports:
      - 9200:9200
    networks:
      - elastic
  k01:
    container_name: k01
    image: docker.elastic.co/kibana/kibana:7.1516.20	# <--- get the latest version
    container_name: k01 
   environment environment:
      SERVER_NAME: kibana
      ELASTICSEARCH_HOSTS: http://es01:9200
    ports:
      - 5601:5601
    networks:
      - elastic
volumes:
  data01:
    driver: local
networks:
  elastic:
    driver: bridge

...

Code Block
languagebash
titleVerify service (alternative method)
$ docker ps | grep elastic
CONTAINER ID   IMAGE                  COMMAND                  CREATED         STATUS   PORTS                                                 NAMES 
119eb7e8b36a   kibana:7.1516.20          "/bin/tini -- /usr/l…"   2 minutes ago   Up       0.0.0.0:5601->5601/tcp, :::5601->5601/tcp             k01
e902ffce0b93   elasticsearch:7.1516.20   "/bin/tini -- /usr/l…"   2 minutes ago   Up       9300/tcp, 0.0.0.0:9200->9200/tcp, :::9200->9200/tcp   es01

...

Code Block
languagebash
titleDownload filebeat
# Look at the version
$ curl -LO https://raw.githubusercontent.com/elastic/beats/7.1516/deploy/kubernetes/filebeat-kubernetes.yaml

...