<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
Dear Dancer users,<br>
<br>
I want to run my Dancer2 application in a docker but I want to run
the docker without mounting any local directories and I want to run
the same container in all environments, not compile it separately
for different environments.<br>
<br>
Problem:<br>
How do I pass the environment dependent parts of the configuration
to the docker? I cannot use file `config_local.yaml` because then I
would need to copy that file somehow into the container when it
starts.<br>
<br>
Possible solution:<br>
I would pass parts of the configuration as environment variables,
e.g. <i>DB_HOST</i> and <i>SITE_URL</i>, and then apply these over
the values in config.yaml when I am creating the endpoints.<br>
<br>
Suggestion:<br>
Change the command `<i>config</i>` (or the underlying file reader
function) so that it can transpose environment variables into config
strings, e.g. plugins->database->connections->main->host
= '${DB_HOST}'.<br>
<br>
<br>
<pre class="moz-signature" cols="72">--
Mikko Koivunalho
[ This message has been signed with PGP. Public key available at request. ]</pre>
</body>
</html>