# Kibana and logstash can't run using docker-compose

**URL:** <https://discuss.elastic.co/t/kibana-and-logstash-cant-run-using-docker-compose/333566>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [May 16, 2023, 12:31pm UTC](https://discuss.elastic.co/t/kibana-and-logstash-cant-run-using-docker-compose/333566 "2023-05-16T12:31:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 16, 2023, 11:48pm UTC](https://discuss.elastic.co/t/kibana-and-logstash-cant-run-using-docker-compose/333566/2 "2023-05-16T23:48:35Z")

</div>

Please don't post the same question more than once, it makes it harder to help you 🙂

> [@Kibana and logstash can't run using docker-compose](https://discuss.elastic.co/t/kibana-and-logstash-cant-run-using-docker-compose/333498):
>
> hi ,hello everyone I run the elastic and logstash and kibana and mysql containers using docker-compose this the configuration that i use in my docker-compose file version: '3' services: mysql: container\_name: mysql hostname: mysql image: 'mysql' restart: always ports: - '3306:3306' environment: MYSQL\_ROOT\_PASSWORD: root MYSQL\_DATABASE: mydb MYSQL\_USER: root MYSQL\_PASSWORD: root build: ./mysql volumes: - mysql\_data:/var/lib/mysql networks: - elastic setup: image: [docker.el…](http://docker.elastic.co/elasticsearch/elasticsearch:8.7.0)

---

_[View the full topic](https://discuss.elastic.co/t/kibana-and-logstash-cant-run-using-docker-compose/333566)._
