Nginx caches DNS at startup, so when dashboard-api restarts and gets a new container IP, the proxy breaks with 502. Use Docker's embedded DNS resolver (127.0.0.11) with a variable-based proxy_pass to re-resolve on every request. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>