[bugfix] fixes running docker registry condition with sql errors by adding gunicorn env variable