title: Push docker image to another container registry with compose
body: <p>I am running locust (the official image from Docker Hub) locally using a Docker-compose file as below</p>
  <pre><code>version: '3'
  
  services:
    locust:
      image: locustio/locust
      ports:
       - &quot;8089:8089&quot;
      volumes:
        - ./:/mnt/locust
      command: -f /mnt/locust/locustfile.py -H https://my-host-url.com
  </code></pre>
  <p>I have done the stress-testing in my local with <code>docker-compose up</code>. The next step is to push this compose file onto another registry. I am following the steps given in docker hub documentation. However, I just need some help in copying the necessary locustfile.py as well to my other registry (let's say artifactory).</p>