Created
August 7, 2018 11:36
-
-
Save AlMaVizca/e919f44cbe010ce11d41c9a1c967e4ce to your computer and use it in GitHub Desktop.
graylog server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
# MongoDB: https://hub.docker.com/_/mongo/ | |
mongodb: | |
image: mongo:3 | |
# Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/5.6/docker.html | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:5.6.3 | |
environment: | |
- http.host=0.0.0.0 | |
- transport.host=localhost | |
- network.host=0.0.0.0 | |
# Disable X-Pack security: https://www.elastic.co/guide/en/elasticsearch/reference/5.6/security-settings.html#general-security-settings | |
- xpack.security.enabled=false | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
mem_limit: 1g | |
# Graylog: https://hub.docker.com/r/graylog/graylog/ | |
graylog: | |
image: graylog/graylog:2.4.0-1 | |
environment: | |
# CHANGE ME! | |
- GRAYLOG_PASSWORD_SECRET=somepasswordpepper | |
# Password: admin | |
- GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918 | |
- GRAYLOG_WEB_ENDPOINT_URI=http://127.0.0.1:9000/api | |
links: | |
- mongodb:mongo | |
- elasticsearch | |
depends_on: | |
- mongodb | |
- elasticsearch | |
ports: | |
# Graylog web interface and REST API | |
- 9000:9000 | |
# Syslog TCP | |
- 514:514 | |
# Syslog UDP | |
- 514:514/udp | |
# GELF TCP | |
- 12201:12201 | |
# GELF UDP | |
- 12201:12201/udp | |
# GELF TCP | |
- 12205:12205 | |
# GELF UDP | |
- 12205:12205/udp | |
# GELF TCP | |
- 12207:12207 | |
# GELF UDP | |
- 12207:12207/udp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment