{"action":"created","issue":{"url":"https://api.github.com/repos/rancher/rancher/issues/2395","labels_url":"https://api.github.com/repos/rancher/rancher/issues/2395/labels{/name}","comments_url":"https://api.github.com/repos/rancher/rancher/issues/2395/comments","events_url":"https://api.github.com/repos/rancher/rancher/issues/2395/events","html_url":"https://github.com/rancher/rancher/issues/2395","id":112727531,"number":2395,"title":"Rancher compose Environment Interpolation not working","user":{"login":"summerQLin","id":12656360,"avatar_url":"https://avatars.githubusercontent.com/u/12656360?v=3","gravatar_id":"","url":"https://api.github.com/users/summerQLin","html_url":"https://github.com/summerQLin","followers_url":"https://api.github.com/users/summerQLin/followers","following_url":"https://api.github.com/users/summerQLin/following{/other_user}","gists_url":"https://api.github.com/users/summerQLin/gists{/gist_id}","starred_url":"https://api.github.com/users/summerQLin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/summerQLin/subscriptions","organizations_url":"https://api.github.com/users/summerQLin/orgs","repos_url":"https://api.github.com/users/summerQLin/repos","events_url":"https://api.github.com/users/summerQLin/events{/privacy}","received_events_url":"https://api.github.com/users/summerQLin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-22T04:08:20Z","updated_at":"2015-10-22T18:49:08Z","closed_at":"2015-10-22T18:49:08Z","body":"Hi,\r\n\r\nI am trying to use environment variables in docker-compose.yml, just fount it doesn't work at all.\r\n\r\nThis is part of setting for loadbalancer container lable, `env | grep URL1` or `env | grep URL2` has values set. But after `rancher-compose up`, from rancher UI docker-compose.yml, I saw the variables are not replaced, it's like `io.rancher.loadbalancer.target.service1: ${URL1}:443=5000`\r\n```\r\nlabels:\r\n  io.rancher.loadbalancer.target.service1: \"${URL1}:443=5000\"\r\n  io.rancher.loadbalancer.target.service2:\"${URL2}:8443=5001\"\r\n```\r\nIt also fails with container environment setting:\r\n```\r\nenvironments:\r\n  MYENV: \"${URL1}:443\"\r\n```\r\nRancher\tv0.37.1\r\nCattle\tv0.91.1\r\nUser Interface\tv0.47.0\r\nRancher Compose\tbeta/latest\r\nrancher-compose version v0.4.0\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/rancher/rancher/issues/comments/150320591","html_url":"https://github.com/rancher/rancher/issues/2395#issuecomment-150320591","issue_url":"https://api.github.com/repos/rancher/rancher/issues/2395","id":150320591,"user":{"login":"deniseschannon","id":11410997,"avatar_url":"https://avatars.githubusercontent.com/u/11410997?v=3","gravatar_id":"","url":"https://api.github.com/users/deniseschannon","html_url":"https://github.com/deniseschannon","followers_url":"https://api.github.com/users/deniseschannon/followers","following_url":"https://api.github.com/users/deniseschannon/following{/other_user}","gists_url":"https://api.github.com/users/deniseschannon/gists{/gist_id}","starred_url":"https://api.github.com/users/deniseschannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deniseschannon/subscriptions","organizations_url":"https://api.github.com/users/deniseschannon/orgs","repos_url":"https://api.github.com/users/deniseschannon/repos","events_url":"https://api.github.com/users/deniseschannon/events{/privacy}","received_events_url":"https://api.github.com/users/deniseschannon/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T18:49:08Z","updated_at":"2015-10-22T18:49:08Z","body":"Yes, environment interpolation didn't come out until v0.4.1.\r\n\r\nAlso, you don't need the quotes for the labels. I don't think it would work if you had the quotes. \r\n\r\nhttp://docs.rancher.com/rancher/rancher-compose/rancher-services/#load-balancer-example-l7"}}