Using --add-host or extra_hosts with docker-compose

后端 未结 5 2116
没有蜡笔的小新
没有蜡笔的小新 2021-01-30 03:47

I am using docker-compose to run a test environment, that consists of about 5 different containers. The inter-container links and the shared volumes (volumes-from)

5条回答
  •  你的背包
    2021-01-30 04:35

    I have great news: this will be in Compose 1.3!

    I'm using it in the current RC (RC1) like this:

    rng:
      build: rng
      extra_hosts:
        seed: 1.2.3.4
        tree: 4.3.2.1
    

提交回复
热议问题