File size: 658 Bytes
3069ef4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | version: '3'
services:
aistudio-proxy:
build:
context: .
args:
- HTTP_PROXY=http://host.docker.internal:10808
- HTTPS_PROXY=http://host.docker.internal:10808
container_name: aistudio-proxy
ports:
- "2048:2048"
volumes:
- ./auth_profiles:/app/auth_profiles
- ./logs:/app/logs
# 添加主机网络访问配置
extra_hosts:
- "host.docker.internal:host-gateway"
# 添加代理环境变量
environment:
- HTTP_PROXY=http://host.docker.internal:10808
- HTTPS_PROXY=http://host.docker.internal:10808
- NO_PROXY=localhost,127.0.0.1
restart: unless-stopped
|