On 8 October 2014 17:19, Roberto Bampi <[email protected]> wrote: > Hi all, > we are trying to use uwsgi to host a django application in a docker [1] > container. > Docker's main way to configure packaged application is to pass environment > variables to them. > So I configured my django application to read most of the settings from > os.environ but it seems like uwsgi does not pass the environment variables > it receives from the parent to the children. > Is there a way to enable this behavior in uwsgi?
You can set environment variables in the .ini file with env= AND you can use environment variables there, like so: $(ENV_VAR) I don't remember if uwsgi clears the environment variables by default, if I remember well it doesn't. http://uwsgi-docs.readthedocs.org/en/latest/Configuration.html ps. there's also https://github.com/unbit/uwsgi-docker -- damjan _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
