Documentation for docker environment variables


(Ryan Grannell) #1

Hi,

Is there any documentation available for environment parameters than can be used when setting up APM through docker-compose? For example, when configuring ElasticSearch you can use the following yaml in place of a dedicated configuration file:

image: docker.elastic.co/elasticsearch/elasticsearch:6.1.1
environment:
  - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  - discovery.zen.minimum_master_nodes=1 

Is there a similar method for configuring APM?


(Ron Cohen) #2

Hi Ryan,

Thank you for your interest in Elastic APM!

APM Server doesn't read environment variables directly, but you can use environment variables to configure APM Server by specifying them on the command line. I agree we need to document how to do that. I've created this issue to that effect

The issue includes an example of how to set configuration options through environment variables when using docker-compose.

Hope that helps!


(Ryan Grannell) #3

Hi Ron, that helps a lot. Thanks, and happy holidays


(system) #4

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