network_mode: bridge uses Docker's default bridge which has no
service-name DNS. An explicit named network gets its own resolver
so nginx can resolve "server" by name. Also adds a healthcheck so
app waits until server is actually ready before nginx starts.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The resolver 127.0.0.11 directive caused ECONNREFUSED errors in this
network setup. Direct proxy_pass resolves server at startup which is
sufficient since depends_on ensures server is running first.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>