From d46b1687df7e7c0d4b00dd56b658c35c17b2c43e Mon Sep 17 00:00:00 2001 From: Matthias Oesterheld <33032967+moesterheld@users.noreply.github.com> Date: Wed, 11 Sep 2024 08:51:51 +0200 Subject: [PATCH] make data node respect `GRAYLOG_DATANODE_OPENSEARCH_*_PORT` variables (#276) --- docker/datanode/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/datanode/entrypoint.sh b/docker/datanode/entrypoint.sh index 4d7b934..7627e91 100755 --- a/docker/datanode/entrypoint.sh +++ b/docker/datanode/entrypoint.sh @@ -55,8 +55,8 @@ export GRAYLOG_DATANODE_NODE_ID_FILE="${GRAYLOG_DATANODE_NODE_ID_FILE:-$GDN_DATA export GRAYLOG_DATANODE_OPENSEARCH_CONFIG_LOCATION="${GRAYLOG_DATANODE_OPENSEARCH_CONFIG_LOCATION:-"$GRAYLOG_DATANODE_DATA_DIR/opensearch/config"}" export GRAYLOG_DATANODE_OPENSEARCH_DATA_LOCATION="${GRAYLOG_DATANODE_OPENSEARCH_DATA_LOCATION:-"$GRAYLOG_DATANODE_DATA_DIR/opensearch/data"}" export GRAYLOG_DATANODE_OPENSEARCH_LOGS_LOCATION="${GRAYLOG_DATANODE_OPENSEARCH_LOGS_LOCATION:-"$GRAYLOG_DATANODE_DATA_DIR/opensearch/logs"}" -export GRAYLOG_DATANODE_OPENSEARCH_HTTP_PORT="9200" -export GRAYLOG_DATANODE_OPENSEARCH_TRANSPORT_PORT="9300" +export GRAYLOG_DATANODE_OPENSEARCH_HTTP_PORT="${GRAYLOG_DATANODE_OPENSEARCH_HTTP_PORT:-9200}" +export GRAYLOG_DATANODE_OPENSEARCH_TRANSPORT_PORT="${GRAYLOG_DATANODE_OPENSEARCH_TRANSPORT_PORT:-9300}" export GRAYLOG_DATANODE_NODE_NAME="${GRAYLOG_DATANODE_NODE_NAME:-"$HOSTNAME"}" # TODO: Bundle the OpenSearch version property in the tarball so we can read it