add local proxy

pull/21891/head
aki 1 year ago
parent 989fb11fd7
commit 84bd58757b

@ -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

Loading…
Cancel
Save