Scaling with docker-composer and appending a number to the hostname?
<p>I've got a <code>docker-compose.yml</code>:</p>

<pre><code>master:
  build: .

slave:
  image: master
  hostname: slave
  command: run_slave
</code></pre>

<p>How can I make <code>docker-compose scale slave=5</code> generate machines with unique hostnames?</p>

<p>...e.g. something like this:</p>

<pre><code>slave1
slave2
slave3
slave4
slave5
</code></pre>