Docker群主机连接

时间:2018-07-31 04:56:59

标签: docker instance swarm

我有一个docker swarm和composefilem,但是帐户服务无法连接http://config:8888

enter link description here

config:
environment:
  CONFIG_SERVICE_PASSWORD: "test"
image: sqshq/piggymetrics-config:latest
hostname: config
deploy:
      update_config:
        delay: 10s
      restart_policy:
        condition: on-failure
ports:
  - 8888:8888

 account-service:
environment:
  CONFIG_SERVICE_PASSWORD: "test"
  ACCOUNT_SERVICE_PASSWORD: "test"
  MONGODB_PASSWORD: "test"
image: sqshq/piggymetrics-account-service:latest
deploy:
      update_config:
        delay: 10s
      restart_policy:
        condition: on-failure
ports:
  - 6000:6000

0 个答案:

没有答案