nginx: re-resolve backend upstream after container restart #75

Open
opened 2026-10-26 10:46:09 -04:00 by vmanne-poc · 0 comments
Owner

Phase 13.1 (v0.15.1) follow-up; related to #29 / #49 API traffic.

nginx resolves the backend upstream hostname once at start, so after the backend container restarts (new IP) API requests fail with 502 until nginx is restarted.

Plan

  • Use Docker's resolver (resolver 127.0.0.11 valid=10s) with a variable upstream so the name is re-resolved.

Done when

  • Restarting the backend container alone keeps the API reachable through nginx.
Phase 13.1 (v0.15.1) follow-up; related to #29 / #49 API traffic. nginx resolves the backend upstream hostname once at start, so after the backend container restarts (new IP) API requests fail with 502 until nginx is restarted. **Plan** - Use Docker's resolver (`resolver 127.0.0.11 valid=10s`) with a variable upstream so the name is re-resolved. **Done when** - Restarting the backend container alone keeps the API reachable through nginx.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
vmanne-poc/Postak#75
No description provided.