title: Docker Compose JVM parameters
body: <p>I wrote a java application that takes an environment variable that takes an argument to set a key for a JWT token salt key. Is there a way for me to pass the command variables in Docker Compose?</p>
  
  <pre><code>java -Djava.security.egd=file:/dev/./urandom -jar /user-profile-api.jar --key=blah
  </code></pre>
  
  <p>And to run the docker image you just </p>
  
  <pre><code>docker run -p 8080:8080 docker_image --key=blah
  </code></pre>