Last active
May 12, 2021 20:30
-
-
Save gandra/dc649b37e165d8e3fc5b20c30a8b5a79 to your computer and use it in GitHub Desktop.
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: | |
image: mongo:4.2 | |
ports: | |
- 27017:27017 | |
volumes: | |
- mongo_data_log:/data/db_graylog | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.2 | |
volumes: | |
- graylog_journal:/usr/share/graylog/data/journal | |
environment: | |
- http.host=0.0.0.0 | |
- transport.host=127.0.0.1 | |
- network.host=0.0.0.0 | |
- discovery.type=single-node | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
mem_limit: 1g | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
# Graylog: https://hub.docker.com/r/graylog/graylog/ | |
graylog: | |
image: graylog/graylog:4.0 | |
volumes: | |
# - ./graylog_data:/usr/share/graylog/data | |
- graylog_journal:/usr/share/graylog/data/journal | |
- graylog_config:/usr/share/graylog/data/config | |
environment: | |
# CHANGE ME (must be at least 16 characters)! | |
- GRAYLOG_PASSWORD_SECRET=dsfSDFdsfdsfdsSDFsdfdsf123rr! | |
# Password: admin | |
- GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918 | |
# https://docs.graylog.org/en/4.0/pages/configuration/server.conf.html#web-rest-api | |
- GRAYLOG_HTTP_BIND_ADDRESS=127.0.0.1:9000 | |
- GRAYLOG_HTTP_PUBLISH_URI=http://127.0.0.1:9000/ | |
- GRAYLOG_HTTP_EXTERNAL_URI=http://127.0.0.1:9000/ | |
- GRAYLOG_HTTP_ENABLE_CORS=true | |
- GRAYLOG_ELASTICSEARCH_VERSION=7 | |
links: | |
- mongodb:mongo | |
- elasticsearch | |
depends_on: | |
- mongodb | |
- elasticsearch | |
ports: | |
# Graylog web interface and REST API | |
- 9000:9000 | |
- 9200:9200 | |
# 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_log: | |
driver: local | |
es_data: | |
driver: local | |
graylog_journal: | |
driver: local | |
graylog_config: | |
driver: local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment