Giter Club home page Giter Club logo

Comments (2)

kangeek avatar kangeek commented on August 23, 2024

大佬不敢当。
这里其实就是搭建了一个研发内网所用的DNS,可以配置到内网的网络设备上。
这个配置文件里的IP实际上是所在主机的IP,根据你的实际情况调整就可以。
同一个docker-compose网络中的不同service可以通过service.name给定的名字互相访问,不过跨主机是不行的,所以需要搭一个内部的DNS。如果你对K8S熟悉的话,可以利用K8S的service来进行流量的转发。

from infra-docker-compose.

fengjie926 avatar fengjie926 commented on August 23, 2024

好的 感谢答复.
明白了, 代码中例子是都部署在一台主机上. readme 中是示例根据情况调整 dns 服务的域名 ip 的配置.

一般内网路由是专门小组或部门管理,如果无法协调内部 dns, 那就只能是 麻烦一点用的人都改 hosts 是吧

from infra-docker-compose.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.