Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- # MongoDB: https://hub.docker.com/_/mongo/
- mongodb:
- image: mongo:4.0
- volumes:
- - mongo_data:/data/db
- # Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/6.x/docker.html
- elasticsearch:
- image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.5
- volumes:
- - es_data:/usr/share/elasticsearch/data
- environment:
- - http.host=0.0.0.0
- - transport.host=localhost
- - network.host=graylog.example.com
- - "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.2.2
- volumes:
- - graylog_journal:/usr/share/graylog/data/journal
- volumes:
- - ./certs/graylog.crt:/certs/graylog.crt
- - ./certs/graylog.key:/certs/graylog.key
- - ./config/hosts:/etc/hosts
- logging:
- driver: syslog
- environment:
- # CHANGE ME (must be at least 16 characters)!
- - GRAYLOG_PASSWORD_SECRET=graylogserverforaws
- # Password: admin
- - GRAYLOG_ROOT_PASSWORD_SHA2=c674ad0246d53361ee006b2ab11ae465331d387e7aea1ea4b2a25a75f038b69e
- - GRAYLOG_HTTP_EXTERNAL_URI=https://graylog.example.com:9000/
- - GRAYLOG_HTTP_PUBLISH_URI=https://graylog.example.com:9000/
- - GRAYLOG_HTTP_ENABLE_TLS=true
- - GRAYLOG_HTTP_TLS_CERT_FILE=/certs/graylog.crt
- - GRAYLOG_HTTP_TLS_KEY_FILE=/certs/graylog.key
- links:
- - mongodb:mongo
- - elasticsearch
- depends_on:
- - mongodb
- - elasticsearch
- ports:
- # Graylog web interface and REST API
- - 9000:9000
- - 443: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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement