Advertisement
bakhridinova

Untitled

May 19th, 2024 (edited)
1,111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.06 KB | None | 0 0
  1. services:
  2.   elasticsearch:
  3.     image: elasticsearch:7.16.1
  4.     container_name: es
  5.     environment:
  6.       discovery.type: single-node
  7.       ES_JAVA_OPTS: "-Xms512m -Xmx512m"
  8.     ports:
  9.      - "9200:9200"
  10.       - "9300:9300"
  11.     healthcheck:
  12.       test: ["CMD-SHELL", "curl --silent --fail localhost:9200/_cluster/health || exit 1"]
  13.       interval: 10s
  14.       timeout: 10s
  15.       retries: 3
  16.   logstash:
  17.     image: logstash:7.16.1
  18.     container_name: log
  19.     environment:
  20.       discovery.seed_hosts: logstash
  21.       LS_JAVA_OPTS: "-Xms512m -Xmx512m"
  22.     volumes:
  23.      - ./logstash/pipeline/logstash-nginx.config:/usr/share/logstash/pipeline/logstash-nginx.config
  24.       - ./logstash/nginx.log:/home/nginx.log
  25.     ports:
  26.      - "5000:5000/tcp"
  27.       - "5000:5000/udp"
  28.       - "5044:5044"
  29.       - "9600:9600"
  30.     depends_on:
  31.      - elasticsearch
  32.     command: logstash -f /usr/share/logstash/pipeline/logstash-nginx.config
  33.   kibana:
  34.     image: kibana:7.16.1
  35.     container_name: kib
  36.     ports:
  37.      - "5601:5601"
  38.     depends_on:
  39.      - elasticsearch
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement