title: How to see error logs when docker-compose fails
body: <p>I have a docker image that starts the entrypoint.sh script</p>
  
  <p>This script checks if the project is well configured</p>
  
  <p>If everything is correct,
  the container starts 
  otherwise I received this error:</p>
  
  <pre><code>echo "Danger! bla bla bla"
  exit 1000
  </code></pre>
  
  <p>Now if i start the container in this mode:</p>
  
  <pre><code>docker-compose up
  </code></pre>
  
  <p>i see the error correctly:</p>
  
  <pre><code>Danger! bla bla bla
  </code></pre>
  
  <p>but i need to launch the container in daemon mode:</p>
  
  <pre><code>docker-compose up -d
  </code></pre>
  
  <p>How can I show the log only in case of error?</p>