# How to pass custom filebeat.yml to docker.elastic.co/beats/filebeat?

**URL:** https://discuss.elastic.co/t/how-to-pass-custom-filebeat-yml-to-docker-elastic-co-beats-filebeat/94140
**Category:** Beats
**Tags:** filebeat
**Created:** [July 21, 2017, 5:17pm UTC](https://discuss.elastic.co/t/how-to-pass-custom-filebeat-yml-to-docker-elastic-co-beats-filebeat/94140 "2017-07-21T17:17:55Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![vramakrishnan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vramakrishnan/32/31750_2.png) [@vramakrishnan](https://discuss.elastic.co/u/vramakrishnan)
#### Post date: [July 21, 2017, 5:17pm UTC](https://discuss.elastic.co/t/how-to-pass-custom-filebeat-yml-to-docker-elastic-co-beats-filebeat/94140/1 "2017-07-21T17:17:55Z")

</div>

1. Can someone share steps to pass custom filebeat.yml to filebeat docker ?

Inside docker I see config in /usr/share/filebeat/filebeat.yml.

I plan to volume mount the logs directory from host.  
Do I have to do the same to volume mount the config yml directory as well ?

1. Also if filebeat.yml config changes, will filebeat pick it up automatically or do I need to restart the docker ?

---

<div class="post-metadata">

### Author: ![vramakrishnan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vramakrishnan/32/31750_2.png) [@vramakrishnan](https://discuss.elastic.co/u/vramakrishnan)
#### Post date: [July 21, 2017, 5:52pm UTC](https://discuss.elastic.co/t/how-to-pass-custom-filebeat-yml-to-docker-elastic-co-beats-filebeat/94140/2 "2017-07-21T17:52:20Z")

</div>

Found the documentation.

docker run   
-v ~/filebeat.yml:/usr/share/filebeat/filebeat.yml   
[docker.elastic.co/beats/filebeat:5.5.0](http://docker.elastic.co/beats/filebeat:5.5.0)

---

<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: [August 18, 2017, 5:52pm UTC](https://discuss.elastic.co/t/how-to-pass-custom-filebeat-yml-to-docker-elastic-co-beats-filebeat/94140/3 "2017-08-18T17:52:29Z")

</div>

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