130nrd

Graylog docker-compose.yaml

May 19th, 2020
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.30 KB | None | 0 0
  1. version: '2'
  2. services:
  3.  # MongoDB: https://hub.docker.com/_/mongo/
  4.   mongodb:
  5.     image: mongo:3
  6.   # Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/6.x/docker.html
  7.   elasticsearch:
  8.     image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.5
  9.     environment:
  10.      - http.host=0.0.0.0
  11.       - transport.host=localhost
  12.       - network.host=0.0.0.0
  13.       - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  14.     ulimits:
  15.       memlock:
  16.         soft: -1
  17.         hard: -1
  18.     mem_limit: 1g
  19.   # Graylog: https://hub.docker.com/r/graylog/graylog/
  20.   graylog:
  21.     image: graylog/graylog:3.2
  22.     environment:
  23.      # CHANGE ME (must be at least 16 characters)!
  24.       - GRAYLOG_PASSWORD_SECRET=somepasswordpepper
  25.       # Password: admin
  26.       - GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918
  27.       - GRAYLOG_HTTP_BIND_ADDRESS=0.0.0.1:9000
  28.       - GRAYLOG_HTTP_EXTERNAL_URI=https://some.external.uri/
  29.     links:
  30.      - mongodb:mongo
  31.       - elasticsearch
  32.     depends_on:
  33.      - mongodb
  34.       - elasticsearch
  35.     ports:
  36.      # Graylog web interface and REST API
  37.       - 9000:9000
  38.       # Syslog TCP
  39.       - 1514:1514
  40.       # Syslog UDP
  41.       - 1514:1514/udp
  42.       # GELF TCP
  43.       - 12201:12201
  44.       # GELF UDP
  45.       - 12201:12201/udp
Add Comment
Please, Sign In to add comment