Graylog2 / docker-compose

A set of Docker Compose files that allow you to quickly spin up a Graylog instance for testing or demo purposes.
Apache License 2.0
396 stars 138 forks source link

Reccomendation: Add TZ to environment #9

Open mikensan opened 2 years ago

mikensan commented 2 years ago

Would recommend adding GRAYLOG_ROOT_TIMEZONE: "whatever" and TZ: "ZoneName" to the environment variables in the docker-compose files.

Since most people may not know how to edit the graylog.conf to modify the admin time (since it cannot be edited from the web console) as well as the container's time defaults to UTC.

delcain commented 1 year ago

I'm using

environment: GRAYLOG_NODE_ID_FILE: "/usr/share/graylog/data/config/node-id" GRAYLOG_PASSWORD_SECRET: "${GRAYLOG_PASSWORD_SECRET:?Please configure GRAYLOG_PASSWORD_SECRET in the .env file}" GRAYLOG_ROOT_PASSWORD_SHA2: "${GRAYLOG_ROOT_PASSWORD_SHA2:?Please configure GRAYLOG_ROOT_PASSWORD_SHA2 in the .env file}" GRAYLOG_HTTP_BIND_ADDRESS: "0.0.0.0:9000" GRAYLOG_HTTP_EXTERNAL_URI: "http://localhost:9000/" GRAYLOG_ELASTICSEARCH_HOSTS: "http://opensearch:9200" GRAYLOG_MONGODB_URI: "mongodb://mongodb:27017/graylog" GRAYLOG_TZ: America/Sao_Paulo GRAYLOG_TIMEZONE: America/Sao_Paulo GRAYLOG_ROOT_TIMEZONE: America/Sao_Paulo