Skip to content

Proxy Enviroment

German edited this page Nov 27, 2024 · 1 revision

Proxy Enviroment

Create an .env file por proxy settings

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 an .env to the docker-compose.yml

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"
Clone this wiki locally