# Why APM-Server Docker image can't configure with Environment variables?

**URL:** <https://discuss.elastic.co/t/why-apm-server-docker-image-cant-configure-with-environment-variables/114229>\
**Category:** APM\
**Created:** [January 5, 2018, 7:41am UTC](https://discuss.elastic.co/t/why-apm-server-docker-image-cant-configure-with-environment-variables/114229 "2018-01-05T07:41:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanielTimLee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danieltimlee/32/26277_2.png) [@DanielTimLee](https://discuss.elastic.co/u/DanielTimLee)\
**Post date:** [January 5, 2018, 7:41am UTC](https://discuss.elastic.co/t/why-apm-server-docker-image-cant-configure-with-environment-variables/114229/1 "2018-01-05T07:41:56Z")

</div>

> **[elastic/apm-server-docker](https://github.com/elastic/apm-server-docker)**
>
> apm-server-docker - Official Docker image for the Elastic APM Server

  
[https://www.elastic.co/guide/en/apm/server/6.1/running-on-docker.html](https://www.elastic.co/guide/en/apm/server/6.1/running-on-docker.html)

Lot's of images on docker hub are available to configure with environment variables.

The use case of my example is, when running on Kubernetes, can't use "bind-mounted configuration."  
well it's tough to configure with Volume mounted Configuration.

Custom Image might be an solution, but it's quite annoying to create a new image for just an url endpoint to my elasticsearch.

Any plan to configure this with Environment Variables?

ps.) If it is available, please document it.

---

<div class="post-metadata">

**Author:** ![roncohen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roncohen/32/22881_2.png) [@roncohen](https://discuss.elastic.co/u/roncohen)\
**Post date:** [January 8, 2018, 11:03am UTC](https://discuss.elastic.co/t/why-apm-server-docker-image-cant-configure-with-environment-variables/114229/2 "2018-01-08T11:03:11Z")

</div>

Hi Daniel,

Thank you for your feedback. I agree it would be great if it was possible to configure APM Server through environment variables. To start us started, I opened up this PR: [https://github.com/elastic/apm-server-docker/pull/5](https://github.com/elastic/apm-server-docker/pull/5). It's still just a draft to get the discussion going. Let me know what you think.

---

<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 29, 2018, 7:03am UTC](https://discuss.elastic.co/t/why-apm-server-docker-image-cant-configure-with-environment-variables/114229/3 "2018-01-29T07:03:15Z")

</div>

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