If I'm running n8n in a Docker container, how do I pass environment variables for proxy settings?

Question

Grade: Education Subject: Support
If I'm running n8n in a Docker container, how do I pass environment variables for proxy settings?
Asked by:
97 Viewed 97 Answers

Answer (97)

Best Answer
(311)
When running the Docker container, use the `-e` flag to pass the `HTTP_PROXY` and `HTTPS_PROXY` environment variables. For example: `docker run -e HTTP_PROXY=http://proxy.example.com:8080 -e HTTPS_PROXY=http://proxy.example.com:8080 ...` Make sure the proxy server is accessible from within the Docker network.