找出这份生成的 Compose 文件中的连接与宿主机访问问题。
YAML
services:
api:
image: catalog:local
environment:
DATABASE_URL: postgresql://catalog:local@localhost:5432/catalog
volumes:
- /:/host
privileged: true
db:
image: postgres:18-alpine
ports:
- "0.0.0.0:5432:5432"