{"action":"created","issue":{"url":"https://api.github.com/repos/docker/compose/issues/1765","labels_url":"https://api.github.com/repos/docker/compose/issues/1765/labels{/name}","comments_url":"https://api.github.com/repos/docker/compose/issues/1765/comments","events_url":"https://api.github.com/repos/docker/compose/issues/1765/events","html_url":"https://github.com/docker/compose/pull/1765","id":97086621,"number":1765,"title":"Interpolate environment variables","user":{"login":"aanand","id":1062,"avatar_url":"https://avatars.githubusercontent.com/u/1062?v=3","gravatar_id":"","url":"https://api.github.com/users/aanand","html_url":"https://github.com/aanand","followers_url":"https://api.github.com/users/aanand/followers","following_url":"https://api.github.com/users/aanand/following{/other_user}","gists_url":"https://api.github.com/users/aanand/gists{/gist_id}","starred_url":"https://api.github.com/users/aanand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aanand/subscriptions","organizations_url":"https://api.github.com/users/aanand/orgs","repos_url":"https://api.github.com/users/aanand/repos","events_url":"https://api.github.com/users/aanand/events{/privacy}","received_events_url":"https://api.github.com/users/aanand/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/compose/labels/status/0-triage","name":"status/0-triage","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/docker/compose/milestones/9","html_url":"https://github.com/docker/compose/milestones/1.5.0","labels_url":"https://api.github.com/repos/docker/compose/milestones/9/labels","id":1229222,"number":9,"title":"1.5.0","description":"","creator":{"login":"aanand","id":1062,"avatar_url":"https://avatars.githubusercontent.com/u/1062?v=3","gravatar_id":"","url":"https://api.github.com/users/aanand","html_url":"https://github.com/aanand","followers_url":"https://api.github.com/users/aanand/followers","following_url":"https://api.github.com/users/aanand/following{/other_user}","gists_url":"https://api.github.com/users/aanand/gists{/gist_id}","starred_url":"https://api.github.com/users/aanand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aanand/subscriptions","organizations_url":"https://api.github.com/users/aanand/orgs","repos_url":"https://api.github.com/users/aanand/repos","events_url":"https://api.github.com/users/aanand/events{/privacy}","received_events_url":"https://api.github.com/users/aanand/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":2,"state":"open","created_at":"2015-07-28T11:48:08Z","updated_at":"2015-08-06T14:13:30Z","due_on":null,"closed_at":null},"comments":13,"created_at":"2015-07-24T16:20:42Z","updated_at":"2015-08-06T17:01:10Z","closed_at":"2015-08-06T14:13:30Z","pull_request":{"url":"https://api.github.com/repos/docker/compose/pulls/1765","html_url":"https://github.com/docker/compose/pull/1765","diff_url":"https://github.com/docker/compose/pull/1765.diff","patch_url":"https://github.com/docker/compose/pull/1765.patch"},"body":"Uses `string.Template`. No docs yet, but here's what works:\r\n\r\n```yaml\r\nweb:\r\n  # unbracketed name\r\n  image: \"$IMAGE\"\r\n\r\n  # bracketed name\r\n  command: \"${COMMAND}\"\r\n\r\n  # array element\r\n  ports:\r\n    - \"${HOST_PORT}:8000\"\r\n\r\n  # dictionary item value\r\n  labels:\r\n    mylabel: \"${LABEL_VALUE}\"\r\n\r\n  # unset value - this will expand to \"host-\"\r\n  hostname: \"host-${UNSET_VALUE}\"\r\n\r\n  # escaped interpolation - this will expand to \"${ESCAPED}\"\r\n  command: \"$${ESCAPED}\"\r\n```\r\n\r\nCloses #1377."},"comment":{"url":"https://api.github.com/repos/docker/compose/issues/comments/128443966","html_url":"https://github.com/docker/compose/pull/1765#issuecomment-128443966","issue_url":"https://api.github.com/repos/docker/compose/issues/1765","id":128443966,"user":{"login":"thaJeztah","id":1804568,"avatar_url":"https://avatars.githubusercontent.com/u/1804568?v=3","gravatar_id":"","url":"https://api.github.com/users/thaJeztah","html_url":"https://github.com/thaJeztah","followers_url":"https://api.github.com/users/thaJeztah/followers","following_url":"https://api.github.com/users/thaJeztah/following{/other_user}","gists_url":"https://api.github.com/users/thaJeztah/gists{/gist_id}","starred_url":"https://api.github.com/users/thaJeztah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaJeztah/subscriptions","organizations_url":"https://api.github.com/users/thaJeztah/orgs","repos_url":"https://api.github.com/users/thaJeztah/repos","events_url":"https://api.github.com/users/thaJeztah/events{/privacy}","received_events_url":"https://api.github.com/users/thaJeztah/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T17:01:10Z","updated_at":"2015-08-06T17:01:10Z","body":"now I'm curious, lol"}}