-
Notifications
You must be signed in to change notification settings - Fork 3
Proxy Enviroment
German edited this page Nov 27, 2024
·
1 revision
Define these variables in an .env file that can be referenced by docker-compose.yml. Example .env file:
HTTP_PROXY=http://proxy.example.com:port
HTTPS_PROXY=https://proxy.example.com:port
NO_PROXY=localhost,127.0.0.1
Add the proxy configuration defined in the .env file, for example to the following docker-compose.yml file:
services:
app:
image: your-app-image
build: .
env_file:
- .env
ports:
- "8080:80"