docker - Nesting variables in Apache config -


i'm building docker-based apache proxy, , i'd proxied port configurable.

i link containers --link ...:proxied, docker makes environment variables proxied_port_80_tcp_addr , proxied_port_80_tcp_port. used proxypass / "http://${proxied_port_80_tcp_addr}:${proxied_port_80_tcp_port}/" reverse proxy port 80.

i'd port configurable command line, when start container. pass variable -e "port=...", , usable ${port} in apache config.

i've tried nest variables, ${proxied_port_${port}_tcp_addr} without success, , using define plugin, still no luck.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -