The system should resolve the hostname for Kratos in the internal network, applicable not only to Docker locally but also to other container runtimes.
Nginx should prioritize using /etc/resolv.conf, and default to 127.0.0.11 only if this configuration file is unavailable.
Tests
I have tested following cases:
[x] docker compose up without customize. admin ui is works well.
[x] docker compose up with NAMESERVER=127.0.0.1 as env variable. The value of resolver in nginx is configured expectedly. (Of course, admin ui is not working as expectedly).
[x] docker compose up with custom resolv.conf(nameserver 10.170.0.20) by mounting file. The value of resolver in nginx is configured expectedly. (Of course, admin ui is not working as expectedly).
Fixes #122
Expected behavior
The system should resolve the hostname for Kratos in the internal network, applicable not only to Docker locally but also to other container runtimes. Nginx should prioritize using /etc/resolv.conf, and default to 127.0.0.11 only if this configuration file is unavailable.
Tests
I have tested following cases: