-
-
Save dpjayasekara/08d8d26539b0ceebd5c04e8caebca2f0 to your computer and use it in GitHub Desktop.
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: | |
mongo: | |
image: mongo:3 | |
tty: true | |
networks: | |
- logsystem | |
volumes: | |
- mongo_data:/data/db | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.1 | |
volumes: | |
- es_data:/usr/share/elasticsearch/data | |
environment: | |
- http.host=0.0.0.0 | |
# Disable X-Pack security: https://www.elastic.co/guide/en/elasticsearch/reference/5.5/security-settings.html#general-security-settings | |
- xpack.security.enabled=false | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
mem_limit: 1g | |
networks: | |
- logsystem | |
ports: | |
- 9200:9200 | |
- 9300:9300 | |
tty: true | |
fluentd: | |
image: myfluentd | |
volumes: | |
- /var/log/myapp:/var/log/myapp | |
- /var/log/fluentd:/var/log/fluentd | |
networks: | |
- logsystem | |
links: | |
- graylog | |
ports: | |
- 24224:24224 | |
- 24224:24224/udp | |
tty: true | |
graylog: | |
image: mygraylog | |
volumes: | |
- graylog_journal:/usr/share/graylog/data/journal | |
environment: | |
# CHANGE ME! | |
- GRAYLOG_PASSWORD_SECRET=5PnZPyvAkPfIo6xUetV6 | |
# Password: admin | |
- GRAYLOG_ROOT_PASSWORD_SHA2=A665A45920422F9D417E4867EFDC4FB8A04A1F3FFF1FA07E998E86F7F7A27AE3 | |
- GRAYLOG_WEB_ENDPOINT_URI=http://127.0.0.1:9000/api | |
networks: | |
- logsystem | |
links: | |
- mongo | |
- 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 | |
tty: true | |
volumes: | |
mongo_data: | |
driver: local | |
es_data: | |
driver: local | |
graylog_journal: | |
driver: local | |
networks: | |
logsystem: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment