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