services: php-app: build: . volumes: - .:/usr/src/app command: > sh -c "composer install && php -S 0.0.0.0:8000 -t /usr/src/app" ports: - "9000:8000"