docker-compose: 给 qwen-agent 加 host.docker.internal extra_hosts 映射,修复 Linux 服务器上调用 New API 时 DNS 解析失败

This commit is contained in:
朱潮 2026-06-26 16:01:13 +08:00
parent 2dab6de6a2
commit 769f473923

View File

@ -51,6 +51,9 @@ services:
- ./projects:/app/projects
- ./models:/app/models
- ./public:/app/public
extra_hosts:
# Map host.docker.internal to host gateway so it works on Linux too
- "host.docker.internal:host-gateway"
depends_on:
postgres:
condition: service_healthy