Advertisement
Guest User

Untitled

a guest
Mar 19th, 2020
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. version: '2'
  2. services:
  3. # MongoDB: https://hub.docker.com/_/mongo/
  4. mongodb:
  5. image: mongo:4.0
  6. volumes:
  7. - mongo_data:/data/db
  8. # Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/6.x/docker.html
  9. elasticsearch:
  10. image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.5
  11. volumes:
  12. - es_data:/usr/share/elasticsearch/data
  13. environment:
  14. - http.host=0.0.0.0
  15. - transport.host=localhost
  16. - network.host=graylog.example.com
  17. - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  18. ulimits:
  19. memlock:
  20. soft: -1
  21. hard: -1
  22. mem_limit: 1g
  23. # Graylog: https://hub.docker.com/r/graylog/graylog/
  24. graylog:
  25. image: graylog/graylog:3.2.2
  26. volumes:
  27. - graylog_journal:/usr/share/graylog/data/journal
  28. volumes:
  29. - ./certs/graylog.crt:/certs/graylog.crt
  30. - ./certs/graylog.key:/certs/graylog.key
  31. - ./config/hosts:/etc/hosts
  32. logging:
  33. driver: syslog
  34. environment:
  35. # CHANGE ME (must be at least 16 characters)!
  36. - GRAYLOG_PASSWORD_SECRET=graylogserverforaws
  37. # Password: admin
  38. - GRAYLOG_ROOT_PASSWORD_SHA2=c674ad0246d53361ee006b2ab11ae465331d387e7aea1ea4b2a25a75f038b69e
  39. - GRAYLOG_HTTP_EXTERNAL_URI=https://graylog.example.com:9000/
  40. - GRAYLOG_HTTP_PUBLISH_URI=https://graylog.example.com:9000/
  41. - GRAYLOG_HTTP_ENABLE_TLS=true
  42. - GRAYLOG_HTTP_TLS_CERT_FILE=/certs/graylog.crt
  43. - GRAYLOG_HTTP_TLS_KEY_FILE=/certs/graylog.key
  44. links:
  45. - mongodb:mongo
  46. - elasticsearch
  47. depends_on:
  48. - mongodb
  49. - elasticsearch
  50. ports:
  51. # Graylog web interface and REST API
  52. - 9000:9000
  53. - 443:9000
  54. # Syslog TCP
  55. - 1514:1514
  56. # Syslog UDP
  57. - 1514:1514/udp
  58. # GELF TCP
  59. - 12201:12201
  60. # GELF UDP
  61. - 12201:12201/udp
  62. # Volumes for persisting data, see https://docs.docker.com/engine/admin/volumes/volumes/
  63. volumes:
  64. mongo_data:
  65. driver: local
  66. es_data:
  67. driver: local
  68. graylog_journal:
  69. driver: local
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement