Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Docker Compose format in docs #19717

Closed
thatstatsguy opened this issue Jun 24, 2024 · 4 comments
Closed

Incorrect Docker Compose format in docs #19717

thatstatsguy opened this issue Jun 24, 2024 · 4 comments
Labels

Comments

@thatstatsguy
Copy link

Incorrect Docker Compose format in docs

I was looking at how to set up graylog to persist data

https://go2docs.graylog.org/5-2/downloading_and_installing_graylog/docker_installation.htm

Currently the docker compose formatting is a incorrect - if someone can point me to the repo where the docs are stored I'm happy to update them.

@bernd
Copy link
Member

bernd commented Jun 24, 2024

@thatstatsguy Thanks for the report! 🙏 We don't have a repository for the documentation. I will file an internal ticket for it.

@bernd
Copy link
Member

bernd commented Jun 25, 2024

Here are the fixed Docker Compose examples:

https://go2docs.graylog.org/5-2/downloading_and_installing_graylog/docker_installation.htm#Configuration

version: '3'
services:
  mongo:
    image: "mongo:6.0.14"
    # Other settings [...]
  opensearch:
    image: "opensearchproject/opensearch:2.12.0"
    # Other settings [...]
  graylog:
    image: "graylog/graylog:5.2"
    # Other settings [...]
    environment:
      GRAYLOG_TRANSPORT_EMAIL_ENABLED: "true"
      GRAYLOG_TRANSPORT_EMAIL_HOSTNAME: smtp
      GRAYLOG_TRANSPORT_EMAIL_PORT: 25
      GRAYLOG_TRANSPORT_EMAIL_USE_AUTH: "false"
      GRAYLOG_TRANSPORT_EMAIL_USE_TLS: "false"
      GRAYLOG_TRANSPORT_EMAIL_USE_SSL: "false"

https://go2docs.graylog.org/5-2/downloading_and_installing_graylog/docker_installation.htm#PersistingData

version: '3'
services:
  # MongoDB: https://hub.docker.com/_/mongo/
  mongodb:
    image: mongo:6.0.14
    volumes:
      - mongo_data:/data/db

  # OpenSearch: https://opensearch.org/docs/latest/install-and-configure/install-opensearch/docker/
  opensearch:
    image: opensearchproject/opensearch:2.12.0
    volumes:
      - os_data:/usr/share/opensearch/data
    environment:
      - http.host=0.0.0.0
      - transport.host=localhost
      - network.host=0.0.0.0
      - "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
      - OPENSEARCH_INITIAL_ADMIN_PASSWORD=${OPENSEARCH_INITIAL_ADMIN_PASSWORD}
    ulimits:
      memlock:
        soft: -1
        hard: -1
      mem_limit: 1g

  # Graylog: https://hub.docker.com/r/graylog/graylog/
  graylog:
    image: graylog/graylog:5.2
    volumes:
      - graylog_data:/usr/share/graylog/data
    environment:
      # CHANGE ME (must be at least 16 characters)!
      - GRAYLOG_PASSWORD_SECRET=somepasswordpepper
      # Password: admin
      - GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918
      - GRAYLOG_HTTP_EXTERNAL_URI=http://127.0.0.1:9000/
    entrypoint: /usr/bin/tini -- wait-for-it opensearch:9200 --  /docker-entrypoint.sh
    links:
      - mongodb:mongo
      - opensearch
    restart: always
    depends_on:
      - mongodb
      - opensearch
    ports:
      # Graylog web interface and REST API
      - 9000:9000
      # Syslog TCP
      - 1514:1514
      # Syslog UDP
      - 1514:1514/udp
      # GELF TCP
      - 12201:12201
      # GELF UDP
      - 12201:12201/udp

  # Volumes for persisting data, see https://docs.docker.com/engine/admin/volumes/volumes/
  volumes:
    mongo_data:
      driver: local
    os_data:
      driver: local
    graylog_data:
      driver: local

https://go2docs.graylog.org/5-2/downloading_and_installing_graylog/docker_installation.htm#KubernetesAutomaticMasterSelection

env:
  - name: POD_NAME
    valueFrom:
      fieldRef:
        fieldPath: metadata.name

@kmerz
Copy link
Member

kmerz commented Jun 27, 2024

An updated in the docs was done yesterday. So I will close this issue now. Thanks for the input!

https://go2docs.graylog.org/current/downloading_and_installing_graylog/docker_installation.htm?tocpath=Installing%20Graylog%7C_____2

@kmerz kmerz closed this as completed Jun 27, 2024
@thatstatsguy
Copy link
Author

thatstatsguy commented Jun 27, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants