Guest User

Untitled

a guest
Oct 30th, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.52 KB | None | 0 0
  1. version: '2'
  2. services:
  3.   mongodb:
  4.     image: mongo:3
  5.     volumes:
  6.       - mongo_data:/data/db
  7.   elasticsearch:
  8.     image: docker.elastic.co/elasticsearch/elasticsearch:6.8.4
  9.     volumes:
  10.       - elasticsearch_data:/usr/share/elasticsearch/data
  11.     environment:
  12.       - http.host=0.0.0.0
  13.       - transport.host=localhost
  14.       - network.host=0.0.0.0
  15.       - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  16.     ulimits:
  17.       memlock:
  18.         soft: -1
  19.         hard: -1
  20.     mem_limit: 2g
  21.   graylog:
  22.     image: graylog/graylog:3.1.2
  23.     volumes:
  24.       # Mount local configuration directory into Docker container
  25.       - ./config:/usr/share/graylog/data/config
  26.       - graylog_journal:/usr/share/graylog/data/journal
  27.     environment:
  28.       - TZ=Europe/Moscow
  29.       # - GRAYLOG_ROOT_PASSWORD_SHA2=f266937560dbe019168c2cd60e3bab059f9322a24ead6783f13858d1f2de2ecf
  30.       # - GRAYLOG_HTTP_EXTERNAL_URI=http://0.0.0.0:9000/
  31.       # - GRAYLOG_HTTP_PUBLISH_URI=http://0.0.0.0:9000/
  32.     links:
  33.       - mongodb:mongo
  34.       - elasticsearch
  35.     depends_on:
  36.       - mongodb
  37.       - elasticsearch
  38.     ports:
  39.       # Graylog web interface and REST API
  40.       - 9000:9000
  41.       # Syslog TCP
  42.       - 1514:1514
  43.       # Syslog UDP
  44.       - 1514:1514/udp
  45.       # GELF TCP
  46.       - 12201:12201
  47.       # GELF UDP
  48.       - 12201:12201/udp
  49.  
  50. # Volumes for persisting data, see https://docs.docker.com/engine/admin/volumes/volumes/
  51. volumes:
  52.   mongo_data:
  53.     driver: local
  54.   elasticsearch_data:
  55.     driver: local
  56.   graylog_journal:
  57.     driver: local
Advertisement
Add Comment
Please, Sign In to add comment