Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Graylog2/docker-compose
A set of Docker Compose files that allow you to quickly spin up a Graylog instance for testing or demo purposes.
https://github.com/Graylog2/docker-compose
Last synced: 4 days ago
JSON representation
A set of Docker Compose files that allow you to quickly spin up a Graylog instance for testing or demo purposes.
- Host: GitHub
- URL: https://github.com/Graylog2/docker-compose
- Owner: Graylog2
- License: apache-2.0
- Created: 2021-06-14T13:19:10.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T11:03:32.000Z (12 days ago)
- Last Synced: 2024-10-29T13:09:48.129Z (12 days ago)
- Language: Shell
- Homepage:
- Size: 47.9 KB
- Stars: 405
- Watchers: 30
- Forks: 138
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Graylog Docker Compose files
## Introduction
This is a set of [Docker Compose](https://docs.docker.com/compose/) files that allow you to quickly spin up a [Graylog](https://docs.graylog.org/) instance for testing or demo purposes.
## Prerequisites
- [Docker](https://docs.docker.com/engine/install/)
- [Docker Compose](https://docs.docker.com/compose/install/)## Configure your OS
Make sure to configure your OS or Docker to have the correct `vm.max_map_count` setting, see: [OpenSearch Docs](https://opensearch.org/docs/2.11/install-and-configure/install-opensearch/index/#important-settings)
## Configure Graylog
All the [Graylog configurations](https://docs.graylog.org/docs/server-conf) can be set via environment variables. Just prefix the parameter name with `GRAYLOG_` and put it in upper case.
There is an environment file (`.env.example`) where you can store these environment variables. Rename this to `.env` so Docker Compose will pick it up.
cp .env.example .env
**Important:** Be sure to to set the `GRAYLOG_PASSWORD_SECRET` and `GRAYLOG_ROOT_PASSWORD_SHA2` environment variables in the .env file! Graylog won't start without these.
## Starting Graylog
After you've configured `GRAYLOG_PASSWORD_SECRET` and `GRAYLOG_ROOT_PASSWORD_SHA2`, run these commands to start the instance:
docker compose up
To start it daemonized, run:
docker compose up -d
Default client port is `9000`. So now you can navigate to `http://localhost:9000`.
Login:
admin
Password:If you're running the DataNode and it's the initial startup, use
password from the logs of your first graylog node
as the password for the basic auth dialog to access the preflight/configuration UI. Use
after you configured graylog. If you have manually configured graylog to connect to OpenSearch directly, use
because the preflight/configuration UI will not be shown.
## License
Graylog itself is licensed under the Server Side Public License (SSPL), see [license information](https://www.mongodb.com/licensing/server-side-public-license).
This Docker image is licensed under the Apache 2.0 license, see [LICENSE](LICENSE).