1. Describe your incident:
New docker based install. Getting “The HTTP_BIND_ADDRESS variable is not set. Defaulting to a blank string”, but the docker images are running. And I can’t access web gui
2. Describe your environment:
-
OS Information: RHEL7
-
Package Version:
image: mongo:4.2
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2
image: graylog/graylog:4.0.14 -
Service logs, configurations, and environment variables:
My yml config:
version: '2'
services:
# MongoDB: https://hub.docker.com/_/mongo/
mongodb:
image: mongo:4.2
volumes:
- mongo_data:/data/db
restart: always
# Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docker.html
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2
volumes:
- es_data:/usr/share/elasticsearch/data
environment:
- http.host=0.0.0.0
- transport.host=localhost
- network.host=0.0.0.0
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
restart: always
# Graylog: https://hub.docker.com/r/graylog/graylog/
graylog:
image: graylog/graylog:4.0.14
volumes:
- graylog_data:/usr/share/graylog/data
environment:
# CHANGE ME (must be at least 16 characters)!
- GRAYLOG_PASSWORD_SECRET=<REDACTED>
# Password: admin
- GRAYLOG_ROOT_PASSWORD_SHA2=<REDACTED>
- GRAYLOG_HTTP_EXTERNAL_URI=http://<hostname>:9000/
- GRAYLOG_HTTP_PUBLISH_URI=http://<hostname>:9000/
- HTTP_BIND_ADDRESS=<IP>:9000
- http_bind_address=<IP>:9000
- http_enable_cors=true
- HTTP_PUBLISH_URI=https://$HTTP_BIND_ADDRESS
entrypoint: /usr/bin/tini -- wait-for-it elasticsearch:9200 -- /docker-entrypoint.sh
links:
- mongodb:mongo
- elasticsearch
restart: always
depends_on:
- mongodb
- elasticsearch
ports:
# Graylog web interface and REST API
- 9000:9000
# Syslog TCP
- 1514:1514
- 1515:1515
# Syslog UDP
- 1514:1514/udp
- 1515:1515/udp
# GELF HTTP
- 5556:5556
# GELF TCP
- 12201:12201
# GELF UDP
- 12201:12201/udp
# RAW TCP
- 5044:5044
- 5555:5555
# Volumes for persisting data, see https://docs.docker.com/engine/admin/volumes/volumes/
volumes:
mongo_data:
driver: local
es_data:
driver: local
graylog_data:
driver: local
3. What steps have you already taken to try and solve the problem?
I’ve tried removing the UPPERCASE HTTP_BIND_ADDRESS line from the config but no help.
4. How can the community help?
Does anyone know what I’m doing wrong with this config?