This docker-compose.yml
file is aimed to quickly deploy Graylog instance in development environment.
- Use Rancher metadata to correctly bind rest_transport_uri to Rancher host IP.
- Download and install Graylog plugins from GitHub.
- Download MaxMind GeoLite2 database and update it on a schedule.
- Disable Graylog's built-in telemetry plugin.
Graylogs's startup script is used to execute custom startup code, which can be configured via environment variables.
- Port to bind
rest_transport_uri
to.
REST_TRANSPORT_URI_PORT: '9000'
- Disable Graylog built-in telemetry plugin.
DISABLE_TELEMETRY: '1'
- Plugins to download from GitHub. Use
username/repo-name
format. Separate entries by whitespace (space, tab, newline, etc...).
PLUGINS: |-
graylog-labs/graylog-plugin-slack
cvtienhoven/graylog-plugin-aggregates
See docs for graylog2/server image to configure Graylog-specific environment variables.
- Open shell
- Navigate to
rancher-graylog/graylog
folder:cd /path/to/rancher-graylog/graylog
- Create stack:
rancher-compose create
STACKS -> Add stack -> Optional: docker-compose.yml