{"action":"created","issue":{"url":"https://api.github.com/repos/docker/compose/issues/1131","labels_url":"https://api.github.com/repos/docker/compose/issues/1131/labels{/name}","comments_url":"https://api.github.com/repos/docker/compose/issues/1131/comments","events_url":"https://api.github.com/repos/docker/compose/issues/1131/events","html_url":"https://github.com/docker/compose/pull/1131","id":62744343,"number":1131,"title":"feature: variables for scale: id, hostname","user":{"login":"ioggstream","id":1140844,"avatar_url":"https://avatars.githubusercontent.com/u/1140844?v=3","gravatar_id":"","url":"https://api.github.com/users/ioggstream","html_url":"https://github.com/ioggstream","followers_url":"https://api.github.com/users/ioggstream/followers","following_url":"https://api.github.com/users/ioggstream/following{/other_user}","gists_url":"https://api.github.com/users/ioggstream/gists{/gist_id}","starred_url":"https://api.github.com/users/ioggstream/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ioggstream/subscriptions","organizations_url":"https://api.github.com/users/ioggstream/orgs","repos_url":"https://api.github.com/users/ioggstream/repos","events_url":"https://api.github.com/users/ioggstream/events{/privacy}","received_events_url":"https://api.github.com/users/ioggstream/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/compose/labels/dco/yes","name":"dco/yes","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":33,"created_at":"2015-03-18T17:12:22Z","updated_at":"2015-05-18T14:57:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/compose/pulls/1131","html_url":"https://github.com/docker/compose/pull/1131","diff_url":"https://github.com/docker/compose/pull/1131.diff","patch_url":"https://github.com/docker/compose/pull/1131.patch"},"body":"This patch enables parametric hostnames and commands when using `scale`\r\navoiding all bash variables expansion issues.\r\n\r\n```\r\n# docker-compose scale test=4\r\ntest:\r\n  image: busybox:latest\r\n  hostname: test-%%id%%\r\n  command: runme.sh %%hostname%%\r\n```\r\n\r\nFrom https://github.com/docker/compose/pull/1006\r\n\r\nSigned-off-by: Roberto Polli <robipolli@gmail.com>"},"comment":{"url":"https://api.github.com/repos/docker/compose/issues/comments/103086584","html_url":"https://github.com/docker/compose/pull/1131#issuecomment-103086584","issue_url":"https://api.github.com/repos/docker/compose/issues/1131","id":103086584,"user":{"login":"ioggstream","id":1140844,"avatar_url":"https://avatars.githubusercontent.com/u/1140844?v=3","gravatar_id":"","url":"https://api.github.com/users/ioggstream","html_url":"https://github.com/ioggstream","followers_url":"https://api.github.com/users/ioggstream/followers","following_url":"https://api.github.com/users/ioggstream/following{/other_user}","gists_url":"https://api.github.com/users/ioggstream/gists{/gist_id}","starred_url":"https://api.github.com/users/ioggstream/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ioggstream/subscriptions","organizations_url":"https://api.github.com/users/ioggstream/orgs","repos_url":"https://api.github.com/users/ioggstream/repos","events_url":"https://api.github.com/users/ioggstream/events{/privacy}","received_events_url":"https://api.github.com/users/ioggstream/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T14:57:49Z","updated_at":"2015-05-18T14:57:49Z","body":"2015-05-18 16:27 GMT+02:00 Guang Chen <notifications@github.com>:\n\n> Suppose there is a flag --gen-server-id\n>\n> This approach is perfectly legitimate for specialized images. In the mysql\ncase you'll end in tens of --PARAMETERS.\n\nAnd then you have to reimplement this for every application (eg wildfly,\n...).\n\n\nI just want the entrypoint.sh be a proxy to mysqld/startup.sh/whatever.\n\nIn whatever way you want to run mysql/wildfly/xxx (cluster, replica & co)\nyou can just set the arguments in the `command` and save your\ndocker-compose.yml\n\nNote then, that parameterized hostnames mimics *exactly* what happens with\ncontainer names.\n"}}