Hello, I have a problem linking my containers in Docker cloud.
Here is how my stackfile looks like:
try-app1: image: 'dockercloud/hello-world:latest' tags: - internal try-app2: image: 'dockercloud/hello-world:latest' tags: - internal web: image: 'mssio/nginx:1.9.11' environment: - APP_COUNT=2 - APP_DOMAIN_1=web1.mss.io.dev - APP_DOMAIN_2=web2.mss.io.dev - APP_PORT_1=80 - APP_PORT_2=80 links: - 'try-app1:app_1' - 'try-app2:app_2' ports: - '80:80' tags: - internal
This Stackfile works prefrectly if I change it to docker-compose.yml but in Docker Cloud somehow the link between web container and try-app1 / try-app2 container is not working so this error message is shown:
web-1 | 2016-02-18T09:54:48.182025377Z 2016/02/18 09:54:46 [emerg] 20#20: host not found in upstream “app_1:80” in /etc/nginx/conf.d/app_1.conf:2
Any idea if it is a bug in Docker Cloud or any mistakes in my deployment strategy?
Thank you for your help.