diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index 173a88bc4c..b61c071fe1 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -5,6 +5,9 @@ # ================================================================== x-shared-env: &shared-api-worker-env + HTTP_PROXY: http://host.docker.internal:1081 + HTTPS_PROXY: http://host.docker.internal:1081 + NO_PROXY: localhost,127.0.0.1 CONSOLE_API_URL: ${CONSOLE_API_URL:-} CONSOLE_WEB_URL: ${CONSOLE_WEB_URL:-} SERVICE_API_URL: ${SERVICE_API_URL:-} @@ -395,6 +398,8 @@ services: api: image: langgenius/dify-api:0.15.0 restart: always + extra_hosts: + - "host.docker.internal:host-gateway" environment: # Use the shared environment variables. <<: *shared-api-worker-env