Skip to content
Snippets Groups Projects
elk.yml 925 B
Newer Older
#
# Docker compose file that launches an ELK stack.
# See https://elk-docker.readthedocs.io/
#
# Defines:
#   - elk-configure-host: Configures the hosts's kernel to be able to use the ELK stack
#   - elk: ELK stack
#
version: '2'

services:
  elk-configure-host:
    image: elk-configure-host
    build:
        context: elk-configure-host
    container_name: ${CONTAINER_NAME_PREFIX}elk-configure-host
    network_mode: ${NETWORK_MODE}
    image: elk
    build:
        context: elk
    container_name: ${CONTAINER_NAME_PREFIX}elk
    network_mode: ${NETWORK_MODE}
    volumes:
      - elk-data:/var/lib/elasticsearch
    ports:
      - "5601:5601" # kibana
      - "9200:9200" # elasticsearch
      - "5044:5044" # logstash beats input
      - "1514:1514" # logstash syslog input
      - "5959:5959" # logstash tcp json input
    depends_on:
      - elk-configure-host