Created
May 14, 2019 12:26
-
-
Save genert/812cee8f18986fc7f778ef597ae221c8 to your computer and use it in GitHub Desktop.
Run graylog 3.0 locally
This file contains hidden or 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 | |
volumes: | |
- mongo_data:/data/db | |
# Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/5.6/docker.html | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.6.1 | |
volumes: | |
- es_data:/usr/share/elasticsearch/data | |
environment: | |
- http.host=0.0.0.0 | |
- transport.host=localhost | |
- network.host=0.0.0.0 | |
- "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:3.0 | |
volumes: | |
- graylog_journal:/usr/share/graylog/data/journal | |
environment: | |
# CHANGE ME (must be at least 16 characters)! | |
- GRAYLOG_PASSWORD_SECRET=somepasswordpepper | |
# Password: admin | |
- GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918 | |
- GRAYLOG_HTTP_EXTERNAL_URI=http://127.0.0.1:9000/ | |
links: | |
- mongodb:mongo | |
- elasticsearch | |
depends_on: | |
- mongodb | |
- elasticsearch | |
ports: | |
# Graylog web interface and REST API | |
- 9000:9000 | |
# Syslog TCP | |
- 1514:1514 | |
# Syslog UDP | |
- 1514:1514/udp | |
# GELF TCP | |
- 12201:12201 | |
# GELF UDP | |
- 12201:12201/udp | |
# Volumes for persisting data, see https://docs.docker.com/engine/admin/volumes/volumes/ | |
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