带有docker的多个子网,一个用于反向代理,其他用于内部服务

时间:2018-10-24 18:02:16

标签: docker docker-compose subnet

让我们想象一下以下设置:

docker-compose:
    nginx-reverse proxy
    some host tools

docker-compose-A
    project A public facing container
    project A containers

docker-compose-B
    project B public facing containers
    project B containers

我已经为反向代理创建了一个永久子网,现在将所有内容放入其中。我在docker-compose-A和docker-compose-B中将此子网指定为默认子网

现在我想附加这样的子网:

docker-compose:
    nginx-reverse proxy -> nginx-subnet
    some host tools -> nginx-subnet

docker-compose-A
    project A public facing container -> nginx-subnet, Project A subnet
    project A conta iners -> Project A subnet

docker-compose-B
    project B public facing containers -> nginx-subnet, Project B subnet
    project B containers -> Project B subnet

怎么办?

0 个答案:

没有答案