Closed andrepaulotek closed 5 months ago
Just tested again after updating to 5.2.3 with this and it worked
graylog:
hostname: "server"
image: "${GRAYLOG_IMAGE:-graylog/graylog:5.2}"
depends_on:
mongodb:
condition: "service_started"
entrypoint: "/usr/bin/tini -- /docker-entrypoint.sh"
environment:
GRAYLOG_NODE_ID_FILE: "/usr/share/graylog/data/data/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_MONGODB_URI: "mongodb://mongodb:27017/graylog"
GRAYLOG_TRANSPORT_EMAIL_PROTOCOL: "smtp"
GRAYLOG_TRANSPORT_EMAIL_WEB_INTERFACE_URL: "https://192.168.1.1/"
GRAYLOG_TRANSPORT_EMAIL_HOSTNAME: "smtp.example.com"
GRAYLOG_TRANSPORT_EMAIL_ENABLED: "true"
GRAYLOG_TRANSPORT_EMAIL_PORT: "587"
GRAYLOG_TRANSPORT_EMAIL_USE_AUTH: "true"
GRAYLOG_TRANSPORT_EMAIL_AUTH_USERNAME: "username"
GRAYLOG_TRANSPORT_EMAIL_AUTH_PASSWORD: "password"
GRAYLOG_TRANSPORT_EMAIL_USE_TLS: "true"
GRAYLOG_TRANSPORT_EMAIL_FROM_EMAIL: "email@example.com"
Hello! I'm using the docker composer from
open-core
.Initially I configured it without email support, but now I need to add those configurations.
When I try to send a test email I get the error:
Notification has email recipients and is triggered, but email transport is not configured. Email transport is not enabled in server configuration file!
I've tried adding the following to the .env file:
I also tried adding these to the docker-compose.yml to the
graylog
service without success.Here's my docker-compose file: