我有一个docker swarm和composefilem,但是帐户服务无法连接http://config:8888
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