Nesting variables in Apache config

I’m building a Docker-based Apache proxy, and I’d like the proxied port to be configurable.

I link the containers with --link ...:proxied, so Docker makes the environment variables PROXIED_PORT_80_TCP_ADDR and PROXIED_PORT_80_TCP_PORT. I used ProxyPass / "http://${PROXIED_PORT_80_TCP_ADDR}:${PROXIED_PORT_80_TCP_PORT}/" to reverse proxy to port 80.

  • Composition of services is it possible with kubernetes?
  • Tomcat + MySQL docker container outputting utf8 text with wrong encoding
  • How can I point stack at docker daemon started without using the socket file?
  • Installing psycopg2 in an alpine docker container
  • docker-compose restart always not issuing run command
  • docker: data volumes container
  • I’d like the port to be configurable from the command line, when I start the container. I pass the variable as -e "PORT=...", and it is usable as ${PORT} in the Apache config.

    I’ve tried to nest the variables, like ${PROXIED_PORT_${PORT}_TCP_ADDR} without success, and also using the Define plugin, but still no luck.

  • How to stop gcloud docker -a overwriting long-lived credentials?
  • How can I write Dockerfile for Yesod? “RUN yesod init -n myApp -d postgresql” didn't work as expected
  • Variables set in .env is not present inside the docker container
  • can't write ñ, ä, ë, ü in a ubuntu docker container
  • Automate adding new Node Exporters to the targets array of prometheus.yml
  • make causes core dump when entering an existing container
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.