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.
KOPF and Mongo Express ports are not exposed by default, since both these services are running without authentication. To enable access, uncomment relevant ports in docker-compose.yml
(see comments in file).
Note that you should do this only if running locally or in secure enviornment. Never expose those services to the outside world without configuring authentication and encryption.
- 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