Closed mdere closed 5 years ago
and I am running my app in docker
But the echo
of your environment variable seem to be run on the host. Are you sure you're passing/setting the environment variable $MYAPP_HOSTNAME
into the docker container as well?
I can get your example working @mdere, I think as @schahal suggested it's a matter of having the environment variables actually visible to your application.
Morning - so I have the following:
and I am running my app in docker - so it is running it as root - so I assume I need to export those variables as root, also I did it as my primary user too.
the logs are spitting out {} or &{} for s variable