|
1 |
| -version: "3.5" |
| 1 | +version: "3.6" |
2 | 2 |
|
3 | 3 | services:
|
4 | 4 | # Kafka and file-writer services are copied from
|
@@ -67,5 +67,67 @@ services:
|
67 | 67 | networks:
|
68 | 68 | - frontend
|
69 | 69 |
|
| 70 | + # Graylog setup |
| 71 | + # MongoDB: https://hub.docker.com/_/mongo/ |
| 72 | + mongodb: |
| 73 | + image: mongo:6.0.14 |
| 74 | + networks: |
| 75 | + - frontend |
| 76 | + |
| 77 | + opensearch: |
| 78 | + image: "opensearchproject/opensearch:2.12.0" |
| 79 | + environment: |
| 80 | + - "OPENSEARCH_JAVA_OPTS=-Xms1g -Xmx1g" |
| 81 | + - "bootstrap.memory_lock=true" |
| 82 | + - "discovery.type=single-node" |
| 83 | + - "action.auto_create_index=false" |
| 84 | + - "plugins.security.ssl.http.enabled=false" |
| 85 | + - "plugins.security.disabled=true" |
| 86 | + # Can generate a password for `OPENSEARCH_INITIAL_ADMIN_PASSWORD` using a linux device via: |
| 87 | + # tr -dc A-Z-a-z-0-9_@#%^-_=+ < /dev/urandom | head -c${1:-32} |
| 88 | + - OPENSEARCH_INITIAL_ADMIN_PASSWORD=+_8r#wliY3Pv5-HMIf4qzXImYzZf-M=M |
| 89 | + ulimits: |
| 90 | + memlock: |
| 91 | + hard: -1 |
| 92 | + soft: -1 |
| 93 | + nofile: |
| 94 | + soft: 65536 |
| 95 | + hard: 65536 |
| 96 | + restart: "on-failure" |
| 97 | + networks: |
| 98 | + - frontend |
| 99 | + |
| 100 | + # Graylog: https://hub.docker.com/r/graylog/graylog/ |
| 101 | + graylog: |
| 102 | + image: graylog/graylog:5.2 |
| 103 | + environment: |
| 104 | + - GRAYLOG_NODE_ID_FILE=/usr/share/graylog/data/config/node-id |
| 105 | + - GRAYLOG_HTTP_BIND_ADDRESS=0.0.0.0:9000 |
| 106 | + - GRAYLOG_ELASTICSEARCH_HOSTS=http://opensearch:9200 |
| 107 | + - GRAYLOG_MONGODB_URI=mongodb://mongodb:27017/graylog |
| 108 | + # CHANGE ME (must be at least 16 characters)! |
| 109 | + - GRAYLOG_PASSWORD_SECRET=somepasswordpepper |
| 110 | + # Password: admin |
| 111 | + - GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918 |
| 112 | + - GRAYLOG_HTTP_EXTERNAL_URI=http://127.0.0.1:9000/ |
| 113 | + entrypoint: /usr/bin/tini -- wait-for-it elasticsearch:9200 -- /docker-entrypoint.sh |
| 114 | + networks: |
| 115 | + - frontend |
| 116 | + restart: always |
| 117 | + depends_on: |
| 118 | + - mongodb |
| 119 | + - opensearch |
| 120 | + ports: |
| 121 | + # Graylog web interface and REST API |
| 122 | + - 9000:9000 |
| 123 | + # Syslog TCP |
| 124 | + - 1514:1514 |
| 125 | + # Syslog UDP |
| 126 | + - 1514:1514/udp |
| 127 | + # GELF TCP |
| 128 | + - 12201:12201 |
| 129 | + # GELF UDP |
| 130 | + - 12201:12201/udp |
| 131 | + |
70 | 132 | networks:
|
71 | 133 | frontend:
|
0 commit comments