majialoong opened a new issue, #493:
URL: https://github.com/apache/rocketmq-dashboard/issues/493

   ## Problem Description
   
   After starting RocketMQ Studio with Docker Compose, the frontend is 
accessible, but `/api/*` requests fail because the Nginx configuration 
hardcodes the DNS resolver `10.89.0.1`.
   
   ## Reproduction Steps
   
   ```bash
   cd deploy
   docker compose up -d --build
   curl -i --max-time 35 http://127.0.0.1:6789/api/clusters
   ```
   
   ## Actual Result
   
   The request returns `502 Bad Gateway` after about 30 seconds. The Nginx log 
reports:
   
   ```text
   rocketmq-server could not be resolved
   ```
   
   ## Expected Result
   
   Nginx should use the DNS resolver provided by the container runtime and 
proxy API requests correctly in both Docker and Podman environments.
   
   ## Fix Solution
   
   Read the resolver from the container's `/etc/resolv.conf` during startup and 
render it into the Nginx configuration using the official Nginx template 
mechanism. This removes the runtime-specific hardcoded DNS address while 
preserving dynamic backend resolution.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to