|
| 1 | +version: "3.8" |
| 2 | + |
| 3 | +services: |
| 4 | + mongodb: |
| 5 | + image: "mongo:5.0" |
| 6 | + volumes: |
| 7 | + - "mongodb_data:/data/db" |
| 8 | + restart: "on-failure" |
| 9 | + |
| 10 | + elasticsearch: |
| 11 | + environment: |
| 12 | + ES_JAVA_OPTS: "-Xms1g -Xmx1g -Dlog4j2.formatMsgNoLookups=true" |
| 13 | + bootstrap.memory_lock: "true" |
| 14 | + discovery.type: "single-node" |
| 15 | + http.host: "0.0.0.0" |
| 16 | + action.auto_create_index: "false" |
| 17 | + image: "docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2" |
| 18 | + ulimits: |
| 19 | + memlock: |
| 20 | + hard: -1 |
| 21 | + soft: -1 |
| 22 | + volumes: |
| 23 | + - "es_data:/usr/share/elasticsearch/data" |
| 24 | + restart: "on-failure" |
| 25 | + |
| 26 | + graylog: |
| 27 | + image: "graylog/graylog:4.2" |
| 28 | + depends_on: |
| 29 | + elasticsearch: |
| 30 | + condition: "service_started" |
| 31 | + mongodb: |
| 32 | + condition: "service_started" |
| 33 | + entrypoint: "/usr/bin/tini -- wait-for-it elasticsearch:9200 -- /docker-entrypoint.sh" |
| 34 | + environment: |
| 35 | + GRAYLOG_NODE_ID_FILE: "/usr/share/graylog/data/config/node-id" |
| 36 | + GRAYLOG_PASSWORD_SECRET: ${GRAYLOG_PASSWORD_SECRET:?Please configure GRAYLOG_PASSWORD_SECRET in the .env file} |
| 37 | + GRAYLOG_ROOT_PASSWORD_SHA2: ${GRAYLOG_ROOT_PASSWORD_SHA2:?Please configure GRAYLOG_ROOT_PASSWORD_SHA2 in the .env file} |
| 38 | + GRAYLOG_HTTP_BIND_ADDRESS: "0.0.0.0:9000" |
| 39 | + GRAYLOG_HTTP_EXTERNAL_URI: "http://localhost:9000/" |
| 40 | + GRAYLOG_ELASTICSEARCH_HOSTS: "http://elasticsearch:9200" |
| 41 | + GRAYLOG_MONGODB_URI: "mongodb://mongodb:27017/graylog" |
| 42 | + ports: |
| 43 | + - "5044:5044/tcp" # Beats |
| 44 | + - "5140:5140/udp" # Syslog |
| 45 | + - "5140:5140/tcp" # Syslog |
| 46 | + - "5555:5555/tcp" # RAW TCP |
| 47 | + - "5555:5555/udp" # RAW TCP |
| 48 | + - "9000:9000/tcp" # Server API |
| 49 | + - "12201:12201/tcp" # GELF TCP |
| 50 | + - "12201:12201/udp" # GELF UDP |
| 51 | + #- "10000:10000/tcp" # Custom TCP port |
| 52 | + #- "10000:10000/udp" # Custom UDP port |
| 53 | + - "13301:13301/tcp" # Forwarder data |
| 54 | + - "13302:13302/tcp" # Forwarder config |
| 55 | + volumes: |
| 56 | + - "graylog_data:/usr/share/graylog/data/data" |
| 57 | + - "graylog_journal:/usr/share/graylog/data/journal" |
| 58 | + restart: "on-failure" |
| 59 | + |
| 60 | + cerebro: |
| 61 | + image: "lmenezes/cerebro" |
| 62 | + environment: |
| 63 | + CEREBRO_PORT: 9001 |
| 64 | + ports: |
| 65 | + - "9001:9001" # cerebro interface |
| 66 | + |
| 67 | + grafana: |
| 68 | + image: "grafana/grafana-oss" |
| 69 | + volumes: |
| 70 | + - "grafana_storage:/var/lib/grafana" |
| 71 | + ports: |
| 72 | + - "9002:3000" |
| 73 | + |
| 74 | +volumes: |
| 75 | + mongodb_data: |
| 76 | + es_data: |
| 77 | + graylog_data: |
| 78 | + graylog_journal: |
| 79 | + grafana_storage: |
0 commit comments