# Logstash with docker compose and grafana

**URL:** https://discuss.elastic.co/t/logstash-with-docker-compose-and-grafana/272075
**Category:** Logstash
**Created:** [May 4, 2021, 2:07pm UTC](https://discuss.elastic.co/t/logstash-with-docker-compose-and-grafana/272075 "2021-05-04T14:07:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![XXXPVSZYON](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xxxpvszyon/32/88181_2.png) [@XXXPVSZYON](https://discuss.elastic.co/u/XXXPVSZYON)
#### Post date: [May 4, 2021, 2:07pm UTC](https://discuss.elastic.co/t/logstash-with-docker-compose-and-grafana/272075/1 "2021-05-04T14:07:26Z")

</div>

Hi, I'm working on my final degree work and i'm stuck uploading a .cvs from logstash to elasticsearch with Docker Compose.

This is my Docker-Compose.yml:

version: '3'  
services:  
grafana:  
image: grafana/grafana  
ports:  
- 3000:3000  
links:  
- elasticsearch  
elasticsearch:  
image: [docker.elastic.co/elasticsearch/elasticsearch-oss:7.0.1](http://docker.elastic.co/elasticsearch/elasticsearch-oss:7.0.1)  
container\_name: elasticsearch  
environment:  
- discovery.type=single-node  
- http.port=9200  
- http.cors.enabled=true  
- http.cors.allow-origin=http://localhost:1358,[http://127.0.0.1:1358](http://127.0.0.1:1358)  
- http.cors.allow-headers=X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization  
- http.cors.allow-credentials=true  
- bootstrap.memory\_lock=true  
- 'ES\_JAVA\_OPTS=-Xms512m -Xmx512m'  
ports:  
- '9200:9200'  
- '9300:9300'  
dejavu:  
image: appbaseio/dejavu:3.3.0  
container\_name: dejavu  
ports:  
- '1358:1358'  
links:  
- elasticsearch  
logstash:  
image: logstash:7.12.0  
links:  
- elasticsearch  
volumes:  
- ./:/home/lilg8b/Downloads/TFGnew/TFG/FicherosDump  
command: ./logstash -f /home/lilg8b/Downloads/TFGnew/TFG/FicherosDump/logstash.conf  
depends\_on:  
- elasticsearch

I dont really understand the volume part. This is the directory from the root where the docker-compose.yml and the logstash.conf are situated:

- /home/lilg8b/Downloads/TFGnew/TFG/FicherosDump

When I run the docker compose it runs correctly, but when I check for the elasticsearch index it doesnt exist, and when I check for the logstash container it has stopped.

Help me please!

---

<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: [June 1, 2021, 2:08pm UTC](https://discuss.elastic.co/t/logstash-with-docker-compose-and-grafana/272075/2 "2021-06-01T14:08:03Z")

</div>

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