title: How to run laravel app using docker-compose?
body: <p>Following is what I tried, is there something I doing wrong?</p>
  
  <p><strong>step1. create a simple laravel app at localhost.</strong></p>
  
  <pre><code>composer create-project --prefer-dist laravel/laravel laravel-app 5.6
  </code></pre>
  
  <p><strong>step2. create docker-compose.yml</strong></p>
  
  <pre><code>version: '3'
  
  services:
      php:
          image: php:7-fpm
          ports: 
            - "3021:8000"
          volumes:
              - ./laravel-app:/app
      composer:
          image: composer:latest
          volumes:
              - ./laravel-app:/app
          working_dir: /app
          command: ["install","php artisan serve --host=0.0.0.0"]
          depends_on:
              - php
  </code></pre>
  
  <p>After that, I run <strong>docker-compose up --force-recreate -d</strong> and access <strong>127.0.0.1:3021</strong> at browser, but I get nothing.</p>
  
  <p>Then I run docker-composer log, it shows me this error message:</p>
  
  <pre><code>Invalid argument php artisan serve --host=0.0.0.0. Use "composer require php artisan serve --host=0.0.0.0" instead to add packages to your composer.json.
  </code></pre>
  
  <p>How to fix this issue?</p>