Docker Network Nginx Resolver

前端 未结 6 1620
挽巷
挽巷 2020-11-30 23:49

I am trying to get rid of deprecated Docker links in my configuration. What\'s left is getting rid of those Bad Gateway nginx reverse proxy errors when I recrea

6条回答
  •  一个人的身影
    2020-12-01 00:38

    In several cases where I had this error, adding resolver_timeout 1s; to the Nginx config solved the issue. Most of the time I don't have a resolver entry.

    Edit: what also worked for containers where I could explicitly define a nameserver: resolver DNS-IP valid=1s;

提交回复
热议问题