docker-compose: 给 qwen-agent 加 host.docker.internal extra_hosts 映射,修复 Linux 服务器上调用 New API 时 DNS 解析失败
This commit is contained in:
parent
2dab6de6a2
commit
769f473923
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user