Skip to content
Snippets Groups Projects
docker-compose.yml 2.14 KiB
Newer Older
nimrod's avatar
nimrod committed
---
version: '3.7'
services:
  curator:
    build:
      context: curator
    links:
      - elasticsearch
    restart: always

  elasticsearch:
    environment:
      'node.name': elasticsearch.shore.co.il
      'cluster.name': shore.co.il
      'discovery.type': single-node
      ES_JAVA_OPTS: "-Xms512m -Xmx512m"
    healthcheck:
      test: ["CMD", "curl", "--fail", "http://localhost:9200/_cat/health"]
    image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2
    restart: always
    volumes:
      - elasticsearch:/usr/share/elasticsearch/data

  filebeat_setup:
    command: >
      filebeat setup
      -E output.elasticsearch.hosts=['elasticsearch:9200']
      -E setup.kibana.host=kibana:5601
      -E setup.ilm.overwrite=true
    image: docker.elastic.co/beats/filebeat-oss:7.12.1
    links: &beat_links
      - elasticsearch
      - kibana
    restart: on-failure

  heartbeat_setup:
    command: >
      heartbeat setup
      -E output.elasticsearch.hosts=['elasticsearch:9200']
      -E setup.kibana.host=kibana:5601
      -E setup.ilm.overwrite=true
    image: docker.elastic.co/beats/heartbeat-oss:7.12.1
    links: *beat_links
    restart: on-failure

nimrod's avatar
nimrod committed
  kibana:
    environment:
      ELASTICSEARCH_HOSTS: |
        ["http://elasticsearch:9200"]
      TELEMETARY_OPTIN: !!str false
    healthcheck:
      test: ["CMD", "curl", "--fail", "http://localhost:5601/api/status"]
    image: docker.elastic.co/kibana/kibana-oss:7.10.2
    links:
      - elasticsearch
    restart: always

  metricbeat_setup:
    command: >
      metricbeat setup
      -E output.elasticsearch.hosts=['elasticsearch:9200']
      -E setup.kibana.host=kibana:5601
      -E setup.ilm.overwrite=true
    image: docker.elastic.co/beats/metricbeat-oss:7.12.1
    links: *beat_links
    restart: on-failure

  packetbeat_setup:
    cap_add:
      - NET_ADMIN
    command: >
      packetbeat setup
      -E output.elasticsearch.hosts=['elasticsearch:9200']
      -E setup.kibana.host=kibana:5601
      -E setup.ilm.overwrite=true
    image: docker.elastic.co/beats/packetbeat-oss:7.12.1
    links: *beat_links
    restart: on-failure

nimrod's avatar
nimrod committed
volumes:
  elasticsearch:

networks:
  default:
    name: shore