title: How to test and deploy a project using docker-compose and circleci?
body: <p>I've the following <code>docker-compose.yml</code>:</p>
  
  <pre><code>version: '3.2'
  
  services:
    nginx:
      build:
        context: ./config/docker/nginx
      depends_on:
       - php
      volumes:
       - ./config/docker/nginx/app_vhost.conf:/etc/nginx/conf.d/default.conf:ro
        - ./public/:/srv/public/:ro
        - ./var/:/srv/var/:rw
  
    php:
      build:
        context: ./config/docker/php
      depends_on:
       - mysql
        - redis
      working_dir: /srv
      volumes:
       - ./config/docker/php/app.ini:/usr/local/etc/php/php.ini:ro
  
    mysql:
      image: mysql
  
    node:
      build:
        context: ./config/docker/node
      working_dir: /srv
      volumes:
       - ./:/srv/
  </code></pre>
  
  <p>I use a <code>docker-compose.override.yml</code> in my development environment to add ports on my local machine and it works well.</p>
  
  <p>Now, I'd to set up circleci to:</p>
  
  <ol>
  <li>Run the tests</li>
  <li>Deploy to AWS</li>
  </ol>
  
  <p>But I couldn't find any proper way to set up circleci config file to do that from my <code>docker-compose.yml</code> configuration.</p>
  
  <p>It looks that extra steps are required.</p>