Replace value of a line in a yml with bash
<pre><code>web:
  image: nginx
  volumes:
    - "./app:/src/app"
  ports:
    - "3030:3000"
    - "35729:35729"
</code></pre>

<p>I would like to have a bash script to replace the <code>nginx</code> for an argument with bash script.  </p>

<pre><code>./script apache
</code></pre>

<p>Will replace <code>nginx</code> for <code>apache</code></p>