# Graylog 3.0.2 inside docker with different port

**URL:** <https://community.graylog.org/t/graylog-3-0-2-inside-docker-with-different-port/11231>\
**Category:** Graylog Central (peer support)\
**Created:** [July 17, 2019, 10:45am UTC](https://community.graylog.org/t/graylog-3-0-2-inside-docker-with-different-port/11231 "2019-07-17T10:45:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajnishtyagi](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@rajnishtyagi](https://community.graylog.org/u/rajnishtyagi)\
**Post date:** [July 17, 2019, 10:45am UTC](https://community.graylog.org/t/graylog-3-0-2-inside-docker-with-different-port/11231/1 "2019-07-17T10:45:23Z")

</div>

hi team,

I am trying to setup graylog 3.0.2 in docker containers, for now i am using the default port 9000 inside the container and while running the container i am binding it `-p 8081:9000` with a different port. and when i try to access it on the browser, it is still trying to connect with 9000 for vendor.js/app.js/config.js.

can someone help me on this?

i am creating a cluster, graylog master configuration is also posted here .

is\_master = true

root\_username = admin  
password\_secret = 23cf370dc3e66e9da9ddf5b8b982cd631115ccf176341843d5b11cad03e95cecd91360e594a04ebbdaa18cbcc75deeb79810aefe69f20d  
root\_password\_sha2 = 9b8769a4a742959a2d0298c36ff2dfacda84362378d8dfd5b37374c

http\_bind\_address = 0.0.0.0:9000  
http\_publish\_uri = http://${DH}:9000/

node\_id\_file = /opt/graylog/node-id  
plugin\_dir = plugin  
http\_enable\_cors = true  
rotation\_strategy = count  
retention\_strategy = delete  
elasticsearch\_index\_prefix = graylog  
allow\_leading\_wildcard\_searches = false  
allow\_highlighting = false  
processor\_wait\_strategy = blocking  
ring\_size = 65536  
message\_journal\_enabled = true  
message\_journal\_dir = data/journal  
lb\_recognition\_period\_seconds = 3  
content\_packs\_auto\_load = grok-patterns.json

mongodb\_uri = mongodb://{GRAYLOG\_SERVER\_1\_NAME}:9301,{GRAYLOG\_SERVER\_2\_NAME}:9301,${GRAYLOG\_SERVER\_3\_NAME}:9301/graylog  
mongodb\_max\_connections = 1000  
mongodb\_threads\_allowed\_to\_block\_multiplier = 5

elasticsearch\_max\_docs\_per\_index = 20000000  
elasticsearch\_max\_number\_of\_indices = 20  
elasticsearch\_cluster\_name = graylog2  
elasticsearch\_shards = 2  
elasticsearch\_replicas = 1  
elasticsearch\_discovery\_zen\_ping\_unicast\_hosts = {GRAYLOG\_SERVER\_1\_NAME}:9300, {GRAYLOG\_SERVER\_2\_NAME}:9300, {GRAYLOG\_SERVER\_3\_NAME}:9300 elasticsearch\_hosts = http://{GRAYLOG\_SERVER\_1\_NAME}:8995, http://{GRAYLOG\_SERVER\_2\_NAME}:8995, http://{GRAYLOG\_SERVER\_3\_NAME}:8995

output\_batch\_size = 500  
output\_flush\_interval = 1  
output\_fault\_count\_threshold = 5  
output\_fault\_penalty\_seconds = 30  
processbuffer\_processors = 5  
outputbuffer\_processors = 3

inputbuffer\_ring\_size = 65536  
inputbuffer\_processors = 2  
inputbuffer\_wait\_strategy = blocking

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [July 17, 2019, 11:01am UTC](https://community.graylog.org/t/graylog-3-0-2-inside-docker-with-different-port/11231/2 "2019-07-17T11:01:17Z")

</div>

you need to set your `http_external_uri` to where your Browser can reach the Graylog API:

[https://docs.graylog.org/en/3.0/pages/configuration/server.conf.html#web-rest-api](https://docs.graylog.org/en/3.0/pages/configuration/server.conf.html#web-rest-api)

---

<div class="post-metadata">

**Author:** ![rajnishtyagi](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@rajnishtyagi](https://community.graylog.org/u/rajnishtyagi)\
**Post date:** [July 17, 2019, 11:14am UTC](https://community.graylog.org/t/graylog-3-0-2-inside-docker-with-different-port/11231/3 "2019-07-17T11:14:56Z")

</div>

so it i will be `http_external_uri` = 0.0.0.0:9000 or 0.0.0.0:8081 ?

UPDATE: i tried both and then i understand 8081 will work for me, now can see graylog default login page and but node page is not showing any information about my cluster and input is also fail to start, this is what i am getting in error

```
2019-07-17 11:27:28,881 WARN : org.graylog2.shared.rest.resources.ProxiedResource - Unable to call http://myurl.com:9000/api/system/metrics/multiple on node <02> java.net.ConnectException: Failed to connect to myurl/10.X.X.X:9000
```

---

<div class="post-metadata">

**Author:** ![jan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jan/32/11_2.png) [@jan](https://community.graylog.org/u/jan)\
**Post date:** [July 17, 2019, 11:59am UTC](https://community.graylog.org/t/graylog-3-0-2-inside-docker-with-different-port/11231/4 "2019-07-17T11:59:19Z")

</div>

please read the `http_publish_uri` default behaviour …

and understand what `0.0.0.0` means and read the docs why that is not possible for `http_external_uri`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [July 31, 2019, 11:59am UTC](https://community.graylog.org/t/graylog-3-0-2-inside-docker-with-different-port/11231/5 "2019-07-31T11:59:23Z")

</div>

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