I’m currently working on a multi-container setup of graylog hosted on AWS ECS.
Because i want to deploy multiple task (graylog + elasticsearch) I have to use AWS Dynamic Port Mapping, which will give a random port between 49153–65535 or 32768–61000 to my graylog container.
However, since I don’t know in advance which port it will be, I’m getting trouble making it work.
My docker-compose file looks like this :
environment: - GRAYLOG_HTTP_BIND_ADRESS=0.0.0.0:* - GRAYLOG_HTTP_PUBLISH_URI=http://127.0.0.1:*/ - GRAYLOG_HTTP_EXTERNAL_URL=http://XXXXX.eu-west-3.elb.amazonaws.com/ ports: - 0:9000 // 0 means dynamic port with ECS - 0:80 - 0:443
With those setting, i’m getting the following error message :
I’ve also tried with different http_bind_adress and http_publish_uri ( “private-ip”:0, 127.0.0.1:0 etc…, i’m getting a “adress invalid error” with port 0)
My Security groups seems fine since i can connect, receive logs and connect to node when i’m not using the dynamic ports.
My question is : Does something like a wildcard port exists that i can use for graylog and dynamic mapping ? Or should i forget this idea for now ?
Edit : I may have posted this in the wrong category, give me a sign if i should move it