# How to add a plugin to ELK in a docker-compose file?

**URL:** https://discuss.elastic.co/t/how-to-add-a-plugin-to-elk-in-a-docker-compose-file/246091
**Category:** Logstash
**Tags:** docker
**Created:** [August 24, 2020, 10:17am UTC](https://discuss.elastic.co/t/how-to-add-a-plugin-to-elk-in-a-docker-compose-file/246091 "2020-08-24T10:17:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nb03briceno](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nb03briceno/32/45777_2.png) [@nb03briceno](https://discuss.elastic.co/u/nb03briceno)
#### Post date: [August 24, 2020, 10:17am UTC](https://discuss.elastic.co/t/how-to-add-a-plugin-to-elk-in-a-docker-compose-file/246091/1 "2020-08-24T10:17:16Z")

</div>

Hello everyone, i have an important question.

If I would like to add a logstash plugin to my docker-compose file, how I could do it?

This is the section of logstash I have in my docker-compose (it's not working because the pipeline I'm running needs the plugin "date\_formatter") :

#Logstash container  
logstash:  
container\_name: logstash  
hostname: logstash  
image: "[docker.elastic.co/logstash/logstash:${ELASTIC\_VERSION}](http://docker.elastic.co/logstash/logstash:%24%7BELASTIC_VERSION%7D)"  
volumes:  
- ./config/logstash/logstash.yml:/usr/share/logstash/config/logstash.yml:ro  
- ./config/logstash/pipeline:/usr/share/logstash/pipeline/  
- ./.kitchen/logs:/logs  
command: /usr/share/logstash/bin/logstash/logstash-plugin install logstash-filter-date\_formatter  
#Port 5044 accessible on the host  
ports: ['5044:5044']  
networks: ['stack']  
depends\_on:  
elasticsearch: { condition: service\_healthy }  
healthcheck:  
test: ["CMD", "curl", "-f", "[http://localhost:9600](http://localhost:9600)"]  
retries: 10  
interval: 10s

Would you mind giving me some advice?

Thanks so much,

---

<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: [September 21, 2020, 10:17am UTC](https://discuss.elastic.co/t/how-to-add-a-plugin-to-elk-in-a-docker-compose-file/246091/2 "2020-09-21T10:17:18Z")

</div>

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