Docker-compose admin timezone

Hi Guys! Here its my docker-compose

mongodb:
image: mongo:3

elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.6.1
environment:
- http.host=0.0.0.0
- transport.host=localhost
- network.host=0.0.0.0
- “ES_JAVA_OPTS=-Xms512m -Xmx512m”

graylog:
image: graylog/graylog:3.0
environment:
- TZ=America/Buenos_Aires
- ROOT_TIMEZONE=America/Buenos_Aires
- GRAYLOG_TIMEZONE=America/Buenos_Aires
- GRAYLOG_PASSWORD_SECRET= somepasswordpepper
- GRAYLOG_ROOT_PASSWORD_SHA2= 8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918
- GRAYLOG_HTTP_EXTERNAL_URI=http://api.local:9000/
links:
- mongodb:mongo
- elasticsearch
depends_on:
- mongodb
- elasticsearch
volumes:
- graylogdata:/var/opt/graylog/data
- graylogdata:/var/log/graylog
ports:
- 9000:9000 # Graylog web interface and REST API
- 5555:5555 # Raw/Plaintext TCP
- 1514:1514 # Syslog TCP
- 1514:1514/udp # Syslog UDP
- 12201:12201 # GELF TCP
- 12201:12201/udp # GELF UDP

volumes:
graylogdata:

But take a look to timezone:

Inside the docker…

graylog@d5f71768e8b8:/opt$ date
Fri Feb 26 17:59:42 -03 2021

How can i set the admin timezone?

Regarts!

Hi i resolv it. I add the config file with the configuration and the enviroment var.

graylog:
image: graylog/graylog:4.0
environment:
- TZ=America/Argentina/Buenos_Aires
- GRAYLOG_PASSWORD_SECRET=somepasswordpepper
- GRAYLOG_TIMEZONE=America/Argentina/Buenos_Aires
- GRAYLOG_ROOT_PASSWORD_SHA2=8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918
- GRAYLOG_HTTP_EXTERNAL_URI=http://127.0.0.1:9000/
entrypoint: /usr/bin/tini – wait-for-it elasticsearch:9200 – /docker-entrypoint.sh
restart: always
depends_on:
- mongo
- elasticsearch
ports:
- 9000:9000
- 1514:1514
- 1514:1514/udp
- 12201:12201
- 12201:12201/udp
volumes:
- graylog_data:/usr/share/graylog/data
- ./plugin:/usr/share/graylog/plugin
- ./config/graylog.conf:/usr/share/graylog/data/config/graylog.conf:ro

Captura de Pantalla 2021-03-01 a la(s) 08.08.25

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.