New install, getting: The HTTP_BIND_ADDRESS variable is not set. Defaulting to a blank string

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:

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?

whoops, gnarly formatting

Use the </> formatting tool around code to make it more readable. :slight_smile:

Hello @primerib

I fixed your first post to make it more readable. :+1:

Hello,

I seen some strange configuration in your Docker configuration. I was wondering if you could explanation this for better clarity.

I noticed these configuration are doubled, should only have one.

Then you have this setting configured ( http)

But then you also have this configure ( https) which makes me think your using Certificates for URL.

Did this installation work before or is this a new installation?

Yes, it worked in another environment. Same OS, images, etc though.
I’ll remove duplicate.
No certs, so I’ll remove ‘https’

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