-
Hi I need a suggestion to make apiman.properties ( apiman ui ) & conf-es.config ( vertx gateway ) values dynamic using docker compose env. apiman.properties
conf-es.config
Following is the dockerfile :
Docker compose file :
It is working for standalone.xml ( apiman ui ) but not working for apiman.properties and conf-es.config ( vertx gateway) . Could you please suggest a way out here ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Have you seen the docker-compose setup here? apiman/apiman-docker#46 -- it might be useful inspiration for you. If you want to refer to an environment variable in your Apiman Vert.x Gateway config file, you should just be able to do:
You can even put a default value. For example Here's the docs for this - https://www.apiman.io/apiman-docs/installation-guide/2.1.2.Final/vertx/config-guide.html#_variables |
Beta Was this translation helpful? Give feedback.
Have you seen the docker-compose setup here? apiman/apiman-docker#46 -- it might be useful inspiration for you.
If you want to refer to an environment variable in your Apiman Vert.x Gateway config file, you should just be able to do:
"something" : "${MY_ENV_VAR}"
and it should pick it up.You can even put a default value. For example
${MY_ENV_VAR:Apiman is cool}
Here's the docs for this - https://www.apiman.io/apiman-docs/installation-guide/2.1.2.Final/vertx/config-guide.html#_variables