πŸ› οΈ Setting Up Graylog on Raspberry Pi: A Beginner’s Guide

πŸ“ Step 3: Set Up Graylog Using Docker Compose

Now, the fun part! Setting up Graylog.

  1. Create a directory for Graylog: mkdir ~/graylog cd ~/graylog
  2. Create a docker-compose.yml file:
    version: '3' services: mongo: image: mongo:4.2 volumes: - mongo_data:/data/db networks: - graylog elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2 environment: - http.host=0.0.0.0 - transport.host=localhost - network.host=0.0.0.0 - "ES_JAVA_OPTS=-Xms512m -Xmx512m" ulimits: memlock: soft: -1 hard: -1 volumes: - es_data:/usr/share/elasticsearch/data networks: - graylog graylog: image: graylog/graylog:4.0 environment: - GRAYLOG_PASSWORD_SECRET=<generate-secret> - GRAYLOG_ROOT_PASSWORD_SHA2=<generate-hash> - GRAYLOG_HTTP_EXTERNAL_URI=http://<your-pi-ip>:9000/ entrypoint: - /usr/bin/tini - --wait - /docker-entrypoint.sh depends_on: - mongo - elasticsearch networks: - graylog ports: - "9000:9000" - "12201:12201/udp" - "1514:1514" - "1514:1514/udp" volumes: mongo_data: driver: local es_data: driver: local networks: graylog: driver: bridge Replace <generate-secret> and <generate-hash> with actual values. πŸ€”

We will be happy to hear your thoughts

Leave a reply

Experience the Power of Preinstalled OS Drives and Booting Guides
Logo
Compare items
  • Total (0)
Compare
0
Ninja Silhouette 9 hours ago

Joe Doe in London, England purchased a

Joe Doe in London?

Joe Doe in London, England purchased a

Joe Doe in London?

Joe Doe in London, England purchased a

Joe Doe in London?

Joe Doe in London, England purchased a