title: How can I escape a $ dollar sign in a docker compose file?
body: <p>I have a YAML scalar that is throwing the following error when I try to evaluate my <code>docker-compose.yml</code> file:</p>
  
  <blockquote>
    <p>ERROR: Invalid interpolation format for "environment" option in
    service "time_service": "${Time.now}"</p>
  </blockquote>
  
  <p>YAML:</p>
  
  <pre><code>---
  version: '2'
  services:
    time_service:
      build: "."
      environment:
        TIME: "${Time.now}"
  </code></pre>
  
  <p>How can I maintain the same string output as written, but avoid having the docker-compose interpret it as faulty string interpolation?</p>