Skip to content

Install server and logging config into GRAYLOG_HOME/config#298

Open
bernd wants to merge 1 commit into7.1from
improve/volume-handling
Open

Install server and logging config into GRAYLOG_HOME/config#298
bernd wants to merge 1 commit into7.1from
improve/volume-handling

Conversation

@bernd
Copy link
Member

@bernd bernd commented Jan 27, 2026

We previously installed the configuration files into the GRAYLOG_HOME/data/config directory. We also documented that users should mount a volume to GRAYLOG_HOME/data to persist data.

When using a volume mount, Docker will copy existing files in GRAYLOG_HOME/data to the new volume. When using a bind mount (e.g., local directory), the directory doesn't include existing files, and the server refuses to start because it can't find the config files.

With the config files outside the data directory, this will no longer happen.

The entrypoint script will use existing config files in data/config to ensure existing setups with modified config files continue to work when updating to the new image.

See Graylog2/docker-compose#99 for details.

Also, adjust the list of directories that get created in GRAYLOG_HOME/data. We don't need the log and plugin directories.

We previously installed the configuration files into the
GRAYLOG_HOME/data/config directory. We also documented that users should
mount a volume to GRAYLOG_HOME/data to persist data.

When using a volume mount, Docker will copy existing files in
GRAYLOG_HOME/data to the new volume. When using a bind mount (e.g.,
local directory), the directory doesn't include existing files and the server
refuses to start because it can't find the config files.

With the config files outside of the data directory, this will not
happen anymore.

The entrypoint script will use existing config files in data/config to
ensure existing setups with modified config files continue to
work when updating to the new image.

See Graylog2/docker-compose#99 for details.

Also adjust list of directories that get created in GRAYLOG_HOME/data.
We don't need the log and plugin directories.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant