# How to run kibana docker container on port 80

**URL:** <https://discuss.elastic.co/t/how-to-run-kibana-docker-container-on-port-80/110355>\
**Category:** Kibana\
**Created:** [December 5, 2017, 1:09pm UTC](https://discuss.elastic.co/t/how-to-run-kibana-docker-container-on-port-80/110355 "2017-12-05T13:09:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marouane](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marouane/32/83858_2.png) [@marouane](https://discuss.elastic.co/u/marouane)\
**Post date:** [December 5, 2017, 1:09pm UTC](https://discuss.elastic.co/t/how-to-run-kibana-docker-container-on-port-80/110355/1 "2017-12-05T13:09:18Z")

</div>

Hi every one ,  
I'm new in elk and now i'm using kibana with the port 5601

docker run -d --name=kibana --restart=unless-stopped --link elasticsearch:elasticsearch -p 5601:5601 kibana:5.2

What i need is to run the kibana container using the port 80

This is what i do :

docker run -d --name=kibana --restart=unless-stopped --link elasticsearch:elasticsearch -p 80:80 -p 5601:5601 kibana:5.2

but i got any result by puttin just my "Hostname in the navigator"

I also crete a new file kibana.yml and i uncommented the line that identify the port and i repaced 5601 by 80

This what i did after that :

docker run -d --name=kibana --restart=unless-stopped --link elasticsearch:elasticsearch -v ./config/kibana.yml:/etc/kibana/kibana.yml -p 80:80 kibana:5.2

docker exec -it \<container\_name\> bash  
my config is applied inside the container , but i still can't access via port 80.

---

<div class="post-metadata">

**Author:** ![jong99](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jong99](https://discuss.elastic.co/u/jong99)\
**Post date:** [December 5, 2017, 5:35pm UTC](https://discuss.elastic.co/t/how-to-run-kibana-docker-container-on-port-80/110355/2 "2017-12-05T17:35:26Z")

</div>

Maybe try keeping it running on 5601 inside the container but mapping it to port 80 when exposing it on the host? e.g. -p 80:5601

I've had a lot of success with docker-compose with [https://github.com/deviantony/docker-elk](https://github.com/deviantony/docker-elk). I edited the docker-compose.yml file to do just this, keeping it on 5601 internally but exposing on port 80.

---

<div class="post-metadata">

**Author:** ![marouane](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marouane/32/83858_2.png) [@marouane](https://discuss.elastic.co/u/marouane)\
**Post date:** [December 6, 2017, 7:52am UTC](https://discuss.elastic.co/t/how-to-run-kibana-docker-container-on-port-80/110355/3 "2017-12-06T07:52:17Z")

</div>

Thank you for your respinse , this is cool , reelly i try mani times but this is the only condition that i didn't think about , this is work for me now

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 3, 2018, 7:52am UTC](https://discuss.elastic.co/t/how-to-run-kibana-docker-container-on-port-80/110355/4 "2018-01-03T07:52:27Z")

</div>

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