Skip to content

Instantly share code, notes, and snippets.

@jermdw
Created August 14, 2018 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jermdw/3755faadc2d6f52d07a613fa2568b691 to your computer and use it in GitHub Desktop.
Save jermdw/3755faadc2d6f52d07a613fa2568b691 to your computer and use it in GitHub Desktop.
Graylog docker-compose configuration
version: '2'
services:
mongodb:
image: mongo:3
volumes:
- mongo_data:/data/db
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.9
volumes:
- es_data:/usr/share/elasticsearch/data
environment:
- http.host=0.0.0.0
- transport.host=localhost
- network.host=0.0.0.0
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 2g
graylog:
image: graylog/graylog:2.4
volumes:
- graylog_journal:/usr/share/graylog/data/journal
environment:
- GRAYLOG_PASSWORD_SECRET=somepasswordpepper
- GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918
- GRAYLOG_WEB_ENDPOINT_URI=http://192.168.1.11:9000/api
links:
- mongodb:mongo
- elasticsearch
depends_on:
- mongodb
- elasticsearch
ports:
- 9000:9000
- 1514:1514
- 1514:1514/udp
- 12201:12201
- 12201:12201/udp
- 19000:19000/tcp
- 5044:5044/tcp
volumes:
mongo_data:
driver: local
es_data:
driver: local
graylog_journal:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment