博客 Engineering

Pointing Pezzo's Local Proxy at the Local Server: A Two-Line Docker Compose Fix

英文文章. Pezzo's Docker Compose proxy reported to Pezzo Cloud and logged 'Invalid Pezzo Project ID'. Two lines point it at the local server instead.

TypeScriptpezzolabs/pezzoDocker ComposeLLMOpsconfiguration

A missing environment variable, and a default that pointed somewhere else.

简短回答

When Pezzo ran locally with Docker Compose, the proxy had no PEZZO_SERVER_URL, so its client fell back to the hosted default https://api.pezzo.ai. Requests reached the model provider, but the proxy logged "Invalid Pezzo Project ID" and nothing appeared in the local console. The fix sets the variable for the proxy service. It was merged as PR #355 and closed issue #299.

The fix

     env_file:
       - ./.env
       - ./apps/proxy/.env
+    environment:
+      - PEZZO_SERVER_URL=http://pezzo-server:3000

By the numbers

  • Repository: pezzolabs/pezzo, 3,279 stars (Nov 3, 2026), TypeScript, Apache-2.0
  • Files changed: 1
  • Lines: +2 / -0
  • Commits: 1
  • Opened and merged: Aug 21, 2026. Time to merge: 1 minute, 25 seconds
  • Review: merged by a maintainer

How the review went

The maintainer replied "Thanks for that. Merging." and merged it.

常见问题解答

Where can I read more?

See the pull request and the original issue, open since May 2024.

目标

Self-hosted setups should talk to themselves by default. Making that explicit in the Compose file removes a confusing first-run failure.

运行闭环

把生产信号转化为已审查的修复。

开始免费试用,了解 Prilog 如何把真实事故映射到代码级 Pull Request。